status-go/protocol/wakusync/profile_response.go

25 lines
715 B
Go
Raw Normal View History

package wakusync
import (
"github.com/status-im/status-go/images"
"github.com/status-im/status-go/protocol/identity"
)
type BackedUpProfile struct {
DisplayName string `json:"displayName,omitempty"`
2023-01-13 17:12:46 +00:00
Images []images.IdentityImage `json:"images,omitempty"`
SocialLinks identity.SocialLinks `json:"socialLinks,omitempty"`
}
func (sfwr *WakuBackedUpDataResponse) SetDisplayName(displayName string) {
sfwr.Profile.DisplayName = displayName
}
func (sfwr *WakuBackedUpDataResponse) SetImages(images []images.IdentityImage) {
sfwr.Profile.Images = images
}
func (sfwr *WakuBackedUpDataResponse) SetSocialLinks(socialLinks identity.SocialLinks) {
sfwr.Profile.SocialLinks = socialLinks
}