2022-11-30 09:41:35 +00:00
|
|
|
package wakusync
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/status-im/status-go/images"
|
2023-04-19 22:59:09 +00:00
|
|
|
"github.com/status-im/status-go/protocol/identity"
|
2023-04-26 15:37:18 +00:00
|
|
|
"github.com/status-im/status-go/services/ens"
|
2022-11-30 09:41:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type BackedUpProfile struct {
|
2023-04-26 15:37:18 +00:00
|
|
|
DisplayName string `json:"displayName,omitempty"`
|
|
|
|
Images []images.IdentityImage `json:"images,omitempty"`
|
2023-06-05 11:10:26 +00:00
|
|
|
SocialLinks []*identity.SocialLink `json:"socialLinks,omitempty"`
|
2023-04-26 15:37:18 +00:00
|
|
|
EnsUsernameDetails []*ens.UsernameDetail `json:"ensUsernameDetails,omitempty"`
|
2022-11-30 09:41:35 +00:00
|
|
|
}
|
|
|
|
|
2023-04-19 22:59:09 +00:00
|
|
|
func (sfwr *WakuBackedUpDataResponse) SetDisplayName(displayName string) {
|
2022-11-30 09:41:35 +00:00
|
|
|
sfwr.Profile.DisplayName = displayName
|
|
|
|
}
|
|
|
|
|
2023-04-19 22:59:09 +00:00
|
|
|
func (sfwr *WakuBackedUpDataResponse) SetImages(images []images.IdentityImage) {
|
2022-11-30 09:41:35 +00:00
|
|
|
sfwr.Profile.Images = images
|
|
|
|
}
|
2023-04-19 22:59:09 +00:00
|
|
|
|
2023-06-05 11:10:26 +00:00
|
|
|
func (sfwr *WakuBackedUpDataResponse) SetSocialLinks(socialLinks []*identity.SocialLink) {
|
2023-04-19 22:59:09 +00:00
|
|
|
sfwr.Profile.SocialLinks = socialLinks
|
|
|
|
}
|
2023-04-26 15:37:18 +00:00
|
|
|
|
|
|
|
func (sfwr *WakuBackedUpDataResponse) SetEnsUsernameDetails(ensUsernameDetails []*ens.UsernameDetail) {
|
|
|
|
sfwr.Profile.EnsUsernameDetails = ensUsernameDetails
|
|
|
|
}
|