Exemple #1
0
        public static HLAPIteam TeamsToTeam(HLAPIteams.Team team)
        {
            HLAPIteam dummy = new HLAPIteam();

            dummy.Id               = team.Id;
            dummy.AcceptingApps    = team.AcceptingApps;
            dummy.CreatedAt        = team.CreatedAt;
            dummy.DeletedAt        = team.DeletedAt;
            dummy.Disbanded        = team.Disbanded;
            dummy.FacebookUrl      = team.FacebookUrl;
            dummy.ShortDescription = team.ShortDescription;
            dummy.Slug             = team.Slug;
            dummy.Slothrating      = team.Slothrating;
            dummy.Title            = team.Title;
            dummy.TwitchUrl        = team.TwitchUrl;
            dummy.TwitterUrl       = team.TwitterUrl;
            dummy.UpdatedAt        = team.UpdatedAt;
            dummy.WebsiteUrl       = team.WebsiteUrl;
            dummy.YoutubeUrl       = team.YoutubeUrl;
            return(dummy);
        }
Exemple #2
0
 public static string ToJson(this HLAPIteam self) => JsonConvert.SerializeObject(self, Converter.Settings);