1// Auto-generated to Go types using avdl-compiler v1.4.8 (https://github.com/keybase/node-avdl-compiler) 2// Input file: ../client/protocol/avdl/keybase1/featured_bot.avdl 3 4package keybase1 5 6type FeaturedBot struct { 7 BotAlias string `codec:"botAlias" json:"botAlias"` 8 Description string `codec:"description" json:"description"` 9 ExtendedDescription string `codec:"extendedDescription" json:"extendedDescription"` 10 ExtendedDescriptionRaw string `codec:"extendedDescriptionRaw" json:"extendedDescriptionRaw"` 11 BotUsername string `codec:"botUsername" json:"botUsername"` 12 OwnerTeam *string `codec:"ownerTeam,omitempty" json:"ownerTeam,omitempty"` 13 OwnerUser *string `codec:"ownerUser,omitempty" json:"ownerUser,omitempty"` 14 Rank int `codec:"rank" json:"rank"` 15 IsPromoted bool `codec:"isPromoted" json:"isPromoted"` 16} 17 18func (o FeaturedBot) DeepCopy() FeaturedBot { 19 return FeaturedBot{ 20 BotAlias: o.BotAlias, 21 Description: o.Description, 22 ExtendedDescription: o.ExtendedDescription, 23 ExtendedDescriptionRaw: o.ExtendedDescriptionRaw, 24 BotUsername: o.BotUsername, 25 OwnerTeam: (func(x *string) *string { 26 if x == nil { 27 return nil 28 } 29 tmp := (*x) 30 return &tmp 31 })(o.OwnerTeam), 32 OwnerUser: (func(x *string) *string { 33 if x == nil { 34 return nil 35 } 36 tmp := (*x) 37 return &tmp 38 })(o.OwnerUser), 39 Rank: o.Rank, 40 IsPromoted: o.IsPromoted, 41 } 42} 43 44type FeaturedBotsRes struct { 45 Bots []FeaturedBot `codec:"bots" json:"bots"` 46 IsLastPage bool `codec:"isLastPage" json:"isLastPage"` 47} 48 49func (o FeaturedBotsRes) DeepCopy() FeaturedBotsRes { 50 return FeaturedBotsRes{ 51 Bots: (func(x []FeaturedBot) []FeaturedBot { 52 if x == nil { 53 return nil 54 } 55 ret := make([]FeaturedBot, len(x)) 56 for i, v := range x { 57 vCopy := v.DeepCopy() 58 ret[i] = vCopy 59 } 60 return ret 61 })(o.Bots), 62 IsLastPage: o.IsLastPage, 63 } 64} 65 66type SearchRes struct { 67 Bots []FeaturedBot `codec:"bots" json:"bots"` 68 IsLastPage bool `codec:"isLastPage" json:"isLastPage"` 69} 70 71func (o SearchRes) DeepCopy() SearchRes { 72 return SearchRes{ 73 Bots: (func(x []FeaturedBot) []FeaturedBot { 74 if x == nil { 75 return nil 76 } 77 ret := make([]FeaturedBot, len(x)) 78 for i, v := range x { 79 vCopy := v.DeepCopy() 80 ret[i] = vCopy 81 } 82 return ret 83 })(o.Bots), 84 IsLastPage: o.IsLastPage, 85 } 86} 87