public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { Name = input.ReadString(); break; } case 16: { Level = input.ReadInt32(); break; } case 26: { if (avatar_ == null) { avatar_ = new global::POGOProtos.Data.Player.PlayerAvatar(); } input.ReadMessage(avatar_); break; } case 32: { teamColor_ = (global::POGOProtos.Enums.TeamColor)input.ReadEnum(); break; } case 40: { BattlesWon = input.ReadInt32(); break; } case 53: { KmWalked = input.ReadFloat(); break; } case 56: { CaughtPokemon = input.ReadInt32(); break; } case 64: { gymBadgeType_ = (global::POGOProtos.Enums.GymBadgeType)input.ReadEnum(); break; } } } }
public void MergeFrom(PlayerPublicProfile other) { if (other == null) { return; } if (other.Name.Length != 0) { Name = other.Name; } if (other.Level != 0) { Level = other.Level; } if (other.avatar_ != null) { if (avatar_ == null) { avatar_ = new global::POGOProtos.Data.Player.PlayerAvatar(); } Avatar.MergeFrom(other.Avatar); } if (other.TeamColor != 0) { TeamColor = other.TeamColor; } if (other.BattlesWon != 0) { BattlesWon = other.BattlesWon; } if (other.KmWalked != 0F) { KmWalked = other.KmWalked; } if (other.CaughtPokemon != 0) { CaughtPokemon = other.CaughtPokemon; } if (other.GymBadgeType != 0) { GymBadgeType = other.GymBadgeType; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { FortId = input.ReadString(); break; } case 16: { gymBadgeType_ = (global::POGOProtos.Enums.GymBadgeType)input.ReadEnum(); break; } case 24: { Score = input.ReadUInt32(); break; } case 34: { if (gymBadgeStats_ == null) { gymBadgeStats_ = new global::POGOProtos.Data.Badge.GymBadgeStats(); } input.ReadMessage(gymBadgeStats_); break; } case 40: { LastUpdateTimestampMs = input.ReadUInt64(); break; } case 50: { Name = input.ReadString(); break; } case 58: { ImageUrl = input.ReadString(); break; } case 66: { Description = input.ReadString(); break; } case 73: { Latitude = input.ReadDouble(); break; } case 81: { Longitude = input.ReadDouble(); break; } case 88: { LastCheckTimestampMs = input.ReadUInt64(); break; } case 96: { EarnedPoints = input.ReadUInt32(); break; } case 109: { Progress = input.ReadFloat(); break; } case 112: { LevelUp = input.ReadBool(); break; } case 122: { if (raids_ == null) { raids_ = new global::POGOProtos.Data.Raid.PlayerRaidInfo(); } input.ReadMessage(raids_); break; } } } }