package tg
import (
"context"
"errors"
"fmt"
"sort"
"strings"
"go.uber.org/multierr"
"github.com/gotd/td/bin"
"github.com/gotd/td/tdjson"
"github.com/gotd/td/tdp"
"github.com/gotd/td/tgerr"
)
var (
_ = bin .Buffer {}
_ = context .Background ()
_ = fmt .Stringer (nil )
_ = strings .Builder {}
_ = errors .Is
_ = multierr .AppendInto
_ = sort .Ints
_ = tdp .Format
_ = tgerr .Error {}
_ = tdjson .Encoder {}
)
type StatsBroadcastStats struct {
Period StatsDateRangeDays
Followers StatsAbsValueAndPrev
ViewsPerPost StatsAbsValueAndPrev
SharesPerPost StatsAbsValueAndPrev
ReactionsPerPost StatsAbsValueAndPrev
ViewsPerStory StatsAbsValueAndPrev
SharesPerStory StatsAbsValueAndPrev
ReactionsPerStory StatsAbsValueAndPrev
EnabledNotifications StatsPercentValue
GrowthGraph StatsGraphClass
FollowersGraph StatsGraphClass
MuteGraph StatsGraphClass
TopHoursGraph StatsGraphClass
InteractionsGraph StatsGraphClass
IvInteractionsGraph StatsGraphClass
ViewsBySourceGraph StatsGraphClass
NewFollowersBySourceGraph StatsGraphClass
LanguagesGraph StatsGraphClass
ReactionsByEmotionGraph StatsGraphClass
StoryInteractionsGraph StatsGraphClass
StoryReactionsByEmotionGraph StatsGraphClass
RecentPostsInteractions []PostInteractionCountersClass
}
const StatsBroadcastStatsTypeID = 0x396ca5fc
var (
_ bin .Encoder = &StatsBroadcastStats {}
_ bin .Decoder = &StatsBroadcastStats {}
_ bin .BareEncoder = &StatsBroadcastStats {}
_ bin .BareDecoder = &StatsBroadcastStats {}
)
func (b *StatsBroadcastStats ) Zero () bool {
if b == nil {
return true
}
if !(b .Period .Zero ()) {
return false
}
if !(b .Followers .Zero ()) {
return false
}
if !(b .ViewsPerPost .Zero ()) {
return false
}
if !(b .SharesPerPost .Zero ()) {
return false
}
if !(b .ReactionsPerPost .Zero ()) {
return false
}
if !(b .ViewsPerStory .Zero ()) {
return false
}
if !(b .SharesPerStory .Zero ()) {
return false
}
if !(b .ReactionsPerStory .Zero ()) {
return false
}
if !(b .EnabledNotifications .Zero ()) {
return false
}
if !(b .GrowthGraph == nil ) {
return false
}
if !(b .FollowersGraph == nil ) {
return false
}
if !(b .MuteGraph == nil ) {
return false
}
if !(b .TopHoursGraph == nil ) {
return false
}
if !(b .InteractionsGraph == nil ) {
return false
}
if !(b .IvInteractionsGraph == nil ) {
return false
}
if !(b .ViewsBySourceGraph == nil ) {
return false
}
if !(b .NewFollowersBySourceGraph == nil ) {
return false
}
if !(b .LanguagesGraph == nil ) {
return false
}
if !(b .ReactionsByEmotionGraph == nil ) {
return false
}
if !(b .StoryInteractionsGraph == nil ) {
return false
}
if !(b .StoryReactionsByEmotionGraph == nil ) {
return false
}
if !(b .RecentPostsInteractions == nil ) {
return false
}
return true
}
func (b *StatsBroadcastStats ) String () string {
if b == nil {
return "StatsBroadcastStats(nil)"
}
type Alias StatsBroadcastStats
return fmt .Sprintf ("StatsBroadcastStats%+v" , Alias (*b ))
}
func (b *StatsBroadcastStats ) FillFrom (from interface {
GetPeriod () (value StatsDateRangeDays )
GetFollowers () (value StatsAbsValueAndPrev )
GetViewsPerPost () (value StatsAbsValueAndPrev )
GetSharesPerPost () (value StatsAbsValueAndPrev )
GetReactionsPerPost () (value StatsAbsValueAndPrev )
GetViewsPerStory () (value StatsAbsValueAndPrev )
GetSharesPerStory () (value StatsAbsValueAndPrev )
GetReactionsPerStory () (value StatsAbsValueAndPrev )
GetEnabledNotifications () (value StatsPercentValue )
GetGrowthGraph () (value StatsGraphClass )
GetFollowersGraph () (value StatsGraphClass )
GetMuteGraph () (value StatsGraphClass )
GetTopHoursGraph () (value StatsGraphClass )
GetInteractionsGraph () (value StatsGraphClass )
GetIvInteractionsGraph () (value StatsGraphClass )
GetViewsBySourceGraph () (value StatsGraphClass )
GetNewFollowersBySourceGraph () (value StatsGraphClass )
GetLanguagesGraph () (value StatsGraphClass )
GetReactionsByEmotionGraph () (value StatsGraphClass )
GetStoryInteractionsGraph () (value StatsGraphClass )
GetStoryReactionsByEmotionGraph () (value StatsGraphClass )
GetRecentPostsInteractions () (value []PostInteractionCountersClass )
}) {
b .Period = from .GetPeriod ()
b .Followers = from .GetFollowers ()
b .ViewsPerPost = from .GetViewsPerPost ()
b .SharesPerPost = from .GetSharesPerPost ()
b .ReactionsPerPost = from .GetReactionsPerPost ()
b .ViewsPerStory = from .GetViewsPerStory ()
b .SharesPerStory = from .GetSharesPerStory ()
b .ReactionsPerStory = from .GetReactionsPerStory ()
b .EnabledNotifications = from .GetEnabledNotifications ()
b .GrowthGraph = from .GetGrowthGraph ()
b .FollowersGraph = from .GetFollowersGraph ()
b .MuteGraph = from .GetMuteGraph ()
b .TopHoursGraph = from .GetTopHoursGraph ()
b .InteractionsGraph = from .GetInteractionsGraph ()
b .IvInteractionsGraph = from .GetIvInteractionsGraph ()
b .ViewsBySourceGraph = from .GetViewsBySourceGraph ()
b .NewFollowersBySourceGraph = from .GetNewFollowersBySourceGraph ()
b .LanguagesGraph = from .GetLanguagesGraph ()
b .ReactionsByEmotionGraph = from .GetReactionsByEmotionGraph ()
b .StoryInteractionsGraph = from .GetStoryInteractionsGraph ()
b .StoryReactionsByEmotionGraph = from .GetStoryReactionsByEmotionGraph ()
b .RecentPostsInteractions = from .GetRecentPostsInteractions ()
}
func (*StatsBroadcastStats ) TypeID () uint32 {
return StatsBroadcastStatsTypeID
}
func (*StatsBroadcastStats ) TypeName () string {
return "stats.broadcastStats"
}
func (b *StatsBroadcastStats ) TypeInfo () tdp .Type {
typ := tdp .Type {
Name : "stats.broadcastStats" ,
ID : StatsBroadcastStatsTypeID ,
}
if b == nil {
typ .Null = true
return typ
}
typ .Fields = []tdp .Field {
{
Name : "Period" ,
SchemaName : "period" ,
},
{
Name : "Followers" ,
SchemaName : "followers" ,
},
{
Name : "ViewsPerPost" ,
SchemaName : "views_per_post" ,
},
{
Name : "SharesPerPost" ,
SchemaName : "shares_per_post" ,
},
{
Name : "ReactionsPerPost" ,
SchemaName : "reactions_per_post" ,
},
{
Name : "ViewsPerStory" ,
SchemaName : "views_per_story" ,
},
{
Name : "SharesPerStory" ,
SchemaName : "shares_per_story" ,
},
{
Name : "ReactionsPerStory" ,
SchemaName : "reactions_per_story" ,
},
{
Name : "EnabledNotifications" ,
SchemaName : "enabled_notifications" ,
},
{
Name : "GrowthGraph" ,
SchemaName : "growth_graph" ,
},
{
Name : "FollowersGraph" ,
SchemaName : "followers_graph" ,
},
{
Name : "MuteGraph" ,
SchemaName : "mute_graph" ,
},
{
Name : "TopHoursGraph" ,
SchemaName : "top_hours_graph" ,
},
{
Name : "InteractionsGraph" ,
SchemaName : "interactions_graph" ,
},
{
Name : "IvInteractionsGraph" ,
SchemaName : "iv_interactions_graph" ,
},
{
Name : "ViewsBySourceGraph" ,
SchemaName : "views_by_source_graph" ,
},
{
Name : "NewFollowersBySourceGraph" ,
SchemaName : "new_followers_by_source_graph" ,
},
{
Name : "LanguagesGraph" ,
SchemaName : "languages_graph" ,
},
{
Name : "ReactionsByEmotionGraph" ,
SchemaName : "reactions_by_emotion_graph" ,
},
{
Name : "StoryInteractionsGraph" ,
SchemaName : "story_interactions_graph" ,
},
{
Name : "StoryReactionsByEmotionGraph" ,
SchemaName : "story_reactions_by_emotion_graph" ,
},
{
Name : "RecentPostsInteractions" ,
SchemaName : "recent_posts_interactions" ,
},
}
return typ
}
func (b *StatsBroadcastStats ) Encode (buf *bin .Buffer ) error {
if b == nil {
return fmt .Errorf ("can't encode stats.broadcastStats#396ca5fc as nil" )
}
buf .PutID (StatsBroadcastStatsTypeID )
return b .EncodeBare (buf )
}
func (b *StatsBroadcastStats ) EncodeBare (buf *bin .Buffer ) error {
if b == nil {
return fmt .Errorf ("can't encode stats.broadcastStats#396ca5fc as nil" )
}
if err := b .Period .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field period: %w" , err )
}
if err := b .Followers .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field followers: %w" , err )
}
if err := b .ViewsPerPost .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field views_per_post: %w" , err )
}
if err := b .SharesPerPost .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field shares_per_post: %w" , err )
}
if err := b .ReactionsPerPost .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field reactions_per_post: %w" , err )
}
if err := b .ViewsPerStory .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field views_per_story: %w" , err )
}
if err := b .SharesPerStory .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field shares_per_story: %w" , err )
}
if err := b .ReactionsPerStory .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field reactions_per_story: %w" , err )
}
if err := b .EnabledNotifications .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field enabled_notifications: %w" , err )
}
if b .GrowthGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field growth_graph is nil" )
}
if err := b .GrowthGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field growth_graph: %w" , err )
}
if b .FollowersGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field followers_graph is nil" )
}
if err := b .FollowersGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field followers_graph: %w" , err )
}
if b .MuteGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field mute_graph is nil" )
}
if err := b .MuteGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field mute_graph: %w" , err )
}
if b .TopHoursGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field top_hours_graph is nil" )
}
if err := b .TopHoursGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field top_hours_graph: %w" , err )
}
if b .InteractionsGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field interactions_graph is nil" )
}
if err := b .InteractionsGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field interactions_graph: %w" , err )
}
if b .IvInteractionsGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field iv_interactions_graph is nil" )
}
if err := b .IvInteractionsGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field iv_interactions_graph: %w" , err )
}
if b .ViewsBySourceGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field views_by_source_graph is nil" )
}
if err := b .ViewsBySourceGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field views_by_source_graph: %w" , err )
}
if b .NewFollowersBySourceGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field new_followers_by_source_graph is nil" )
}
if err := b .NewFollowersBySourceGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field new_followers_by_source_graph: %w" , err )
}
if b .LanguagesGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field languages_graph is nil" )
}
if err := b .LanguagesGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field languages_graph: %w" , err )
}
if b .ReactionsByEmotionGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field reactions_by_emotion_graph is nil" )
}
if err := b .ReactionsByEmotionGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field reactions_by_emotion_graph: %w" , err )
}
if b .StoryInteractionsGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field story_interactions_graph is nil" )
}
if err := b .StoryInteractionsGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field story_interactions_graph: %w" , err )
}
if b .StoryReactionsByEmotionGraph == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field story_reactions_by_emotion_graph is nil" )
}
if err := b .StoryReactionsByEmotionGraph .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field story_reactions_by_emotion_graph: %w" , err )
}
buf .PutVectorHeader (len (b .RecentPostsInteractions ))
for idx , v := range b .RecentPostsInteractions {
if v == nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field recent_posts_interactions element with index %d is nil" , idx )
}
if err := v .Encode (buf ); err != nil {
return fmt .Errorf ("unable to encode stats.broadcastStats#396ca5fc: field recent_posts_interactions element with index %d: %w" , idx , err )
}
}
return nil
}
func (b *StatsBroadcastStats ) Decode (buf *bin .Buffer ) error {
if b == nil {
return fmt .Errorf ("can't decode stats.broadcastStats#396ca5fc to nil" )
}
if err := buf .ConsumeID (StatsBroadcastStatsTypeID ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: %w" , err )
}
return b .DecodeBare (buf )
}
func (b *StatsBroadcastStats ) DecodeBare (buf *bin .Buffer ) error {
if b == nil {
return fmt .Errorf ("can't decode stats.broadcastStats#396ca5fc to nil" )
}
{
if err := b .Period .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field period: %w" , err )
}
}
{
if err := b .Followers .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field followers: %w" , err )
}
}
{
if err := b .ViewsPerPost .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field views_per_post: %w" , err )
}
}
{
if err := b .SharesPerPost .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field shares_per_post: %w" , err )
}
}
{
if err := b .ReactionsPerPost .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field reactions_per_post: %w" , err )
}
}
{
if err := b .ViewsPerStory .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field views_per_story: %w" , err )
}
}
{
if err := b .SharesPerStory .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field shares_per_story: %w" , err )
}
}
{
if err := b .ReactionsPerStory .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field reactions_per_story: %w" , err )
}
}
{
if err := b .EnabledNotifications .Decode (buf ); err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field enabled_notifications: %w" , err )
}
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field growth_graph: %w" , err )
}
b .GrowthGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field followers_graph: %w" , err )
}
b .FollowersGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field mute_graph: %w" , err )
}
b .MuteGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field top_hours_graph: %w" , err )
}
b .TopHoursGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field interactions_graph: %w" , err )
}
b .InteractionsGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field iv_interactions_graph: %w" , err )
}
b .IvInteractionsGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field views_by_source_graph: %w" , err )
}
b .ViewsBySourceGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field new_followers_by_source_graph: %w" , err )
}
b .NewFollowersBySourceGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field languages_graph: %w" , err )
}
b .LanguagesGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field reactions_by_emotion_graph: %w" , err )
}
b .ReactionsByEmotionGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field story_interactions_graph: %w" , err )
}
b .StoryInteractionsGraph = value
}
{
value , err := DecodeStatsGraph (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field story_reactions_by_emotion_graph: %w" , err )
}
b .StoryReactionsByEmotionGraph = value
}
{
headerLen , err := buf .VectorHeader ()
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field recent_posts_interactions: %w" , err )
}
if headerLen > 0 {
b .RecentPostsInteractions = make ([]PostInteractionCountersClass , 0 , headerLen %bin .PreallocateLimit )
}
for idx := 0 ; idx < headerLen ; idx ++ {
value , err := DecodePostInteractionCounters (buf )
if err != nil {
return fmt .Errorf ("unable to decode stats.broadcastStats#396ca5fc: field recent_posts_interactions: %w" , err )
}
b .RecentPostsInteractions = append (b .RecentPostsInteractions , value )
}
}
return nil
}
func (b *StatsBroadcastStats ) GetPeriod () (value StatsDateRangeDays ) {
if b == nil {
return
}
return b .Period
}
func (b *StatsBroadcastStats ) GetFollowers () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .Followers
}
func (b *StatsBroadcastStats ) GetViewsPerPost () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .ViewsPerPost
}
func (b *StatsBroadcastStats ) GetSharesPerPost () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .SharesPerPost
}
func (b *StatsBroadcastStats ) GetReactionsPerPost () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .ReactionsPerPost
}
func (b *StatsBroadcastStats ) GetViewsPerStory () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .ViewsPerStory
}
func (b *StatsBroadcastStats ) GetSharesPerStory () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .SharesPerStory
}
func (b *StatsBroadcastStats ) GetReactionsPerStory () (value StatsAbsValueAndPrev ) {
if b == nil {
return
}
return b .ReactionsPerStory
}
func (b *StatsBroadcastStats ) GetEnabledNotifications () (value StatsPercentValue ) {
if b == nil {
return
}
return b .EnabledNotifications
}
func (b *StatsBroadcastStats ) GetGrowthGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .GrowthGraph
}
func (b *StatsBroadcastStats ) GetFollowersGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .FollowersGraph
}
func (b *StatsBroadcastStats ) GetMuteGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .MuteGraph
}
func (b *StatsBroadcastStats ) GetTopHoursGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .TopHoursGraph
}
func (b *StatsBroadcastStats ) GetInteractionsGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .InteractionsGraph
}
func (b *StatsBroadcastStats ) GetIvInteractionsGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .IvInteractionsGraph
}
func (b *StatsBroadcastStats ) GetViewsBySourceGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .ViewsBySourceGraph
}
func (b *StatsBroadcastStats ) GetNewFollowersBySourceGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .NewFollowersBySourceGraph
}
func (b *StatsBroadcastStats ) GetLanguagesGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .LanguagesGraph
}
func (b *StatsBroadcastStats ) GetReactionsByEmotionGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .ReactionsByEmotionGraph
}
func (b *StatsBroadcastStats ) GetStoryInteractionsGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .StoryInteractionsGraph
}
func (b *StatsBroadcastStats ) GetStoryReactionsByEmotionGraph () (value StatsGraphClass ) {
if b == nil {
return
}
return b .StoryReactionsByEmotionGraph
}
func (b *StatsBroadcastStats ) GetRecentPostsInteractions () (value []PostInteractionCountersClass ) {
if b == nil {
return
}
return b .RecentPostsInteractions
}
func (b *StatsBroadcastStats ) MapRecentPostsInteractions () (value PostInteractionCountersClassArray ) {
return PostInteractionCountersClassArray (b .RecentPostsInteractions )
}
The pages are generated with Golds v0.6.7 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds .