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"
|
2022-11-30 09:41:35 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type BackedUpProfile struct {
|
2022-12-12 10:20:32 +00:00
|
|
|
DisplayName string `json:"displayName,omitempty"`
|
2023-01-13 17:12:46 +00:00
|
|
|
Images []images.IdentityImage `json:"images,omitempty"`
|
2023-04-19 22:59:09 +00:00
|
|
|
SocialLinks identity.SocialLinks `json:"socialLinks,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
|
|
|
|
|
|
|
func (sfwr *WakuBackedUpDataResponse) SetSocialLinks(socialLinks identity.SocialLinks) {
|
|
|
|
sfwr.Profile.SocialLinks = socialLinks
|
|
|
|
}
|