status-go/protocol/wakusync/profile_response.go

31 lines
1.0 KiB
Go
Raw Normal View History

package wakusync
import (
"github.com/status-im/status-go/images"
"github.com/status-im/status-go/protocol/identity"
"github.com/status-im/status-go/services/ens"
)
type BackedUpProfile struct {
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"`
EnsUsernameDetails []*ens.UsernameDetail `json:"ensUsernameDetails,omitempty"`
}
func (sfwr *WakuBackedUpDataResponse) SetDisplayName(displayName string) {
sfwr.Profile.DisplayName = displayName
}
func (sfwr *WakuBackedUpDataResponse) SetImages(images []images.IdentityImage) {
sfwr.Profile.Images = images
}
2023-06-05 11:10:26 +00:00
func (sfwr *WakuBackedUpDataResponse) SetSocialLinks(socialLinks []*identity.SocialLink) {
sfwr.Profile.SocialLinks = socialLinks
}
func (sfwr *WakuBackedUpDataResponse) SetEnsUsernameDetails(ensUsernameDetails []*ens.UsernameDetail) {
sfwr.Profile.EnsUsernameDetails = ensUsernameDetails
}