package main
// ListProfiles .
func (a *App) ListProfiles() ([]map[string]interface{}, error) {
return a.core.ListProfiles()
}
// CreateProfile .
func (a *App) CreateProfile(name, pin, mnemonic, userID, avatarPath string, usePin bool) error {
return a.core.CreateProfile(name, pin, mnemonic, userID, avatarPath, usePin)
}
// UnlockProfile PIN .
func (a *App) UnlockProfile(profileID, pin string) (string, error) {
return a.core.UnlockProfile(profileID, pin)
}
// DeleteProfile .
func (a *App) DeleteProfile(profileID string) error {
return a.core.DeleteProfile(profileID)
}
// Login .
func (a *App) Login(seedPhrase string) error {
return a.core.Login(seedPhrase)
}
// CreateAccount .
func (a *App) CreateAccount() (string, error) {
return a.core.CreateAccount()
}
// Logout .
func (a *App) Logout() {
a.core.Logout()
}
// GetMyInfo .
func (a *App) GetMyInfo() map[string]interface{} {
return a.core.GetMyInfo()
}
// UpdateMyProfile .
func (a *App) UpdateMyProfile(nickname, bio, avatar string) error {
return a.core.UpdateMyProfile(nickname, bio, avatar)
}
// GetCurrentProfile .
func (a *App) GetCurrentProfile() map[string]interface{} {
return a.core.GetCurrentProfile()
}
// UpdateProfile (- ..)
func (a *App) UpdateProfile(profileID, name, avatarPath string, deleteAvatar bool, usePin bool, newPin, mnemonic string) error {
return a.core.UpdateProfile(profileID, name, avatarPath, deleteAvatar, usePin, newPin, mnemonic)
}