github.com/status-im/status-go@v1.1.0/protocol/status_update.go (about) 1 package protocol 2 3 import "github.com/status-im/status-go/protocol/protobuf" 4 5 type UserStatus struct { 6 PublicKey string `json:"publicKey,omitempty"` 7 StatusType int `json:"statusType"` 8 Clock uint64 `json:"clock"` 9 CustomText string `json:"text"` 10 } 11 12 func ToUserStatus(msg *protobuf.StatusUpdate) UserStatus { 13 return UserStatus{ 14 StatusType: int(msg.StatusType), 15 Clock: msg.Clock, 16 CustomText: msg.CustomText, 17 } 18 }