Permalink
Browse files

Fix.

  • Loading branch information...
1 parent 440e0d0 commit e50a05033079aa7c105f51c5ad4004ae4d0bfd94 TOM_RUS committed Jul 5, 2011
View
12 WCPAPI/Achievements.cs
@@ -7,16 +7,16 @@ namespace WCPAPI
public class Achievements
{
[DataMember(Name = "achievementsCompleted")]
- public IList<int> AchievementsCompleted;
+ public IList<int> AchievementsCompleted { get; private set; }
[DataMember(Name = "achievementsCompletedTimestamp")]
- public IList<double> AchievementsCompletedTimestamp;
+ public IList<double> AchievementsCompletedTimestamp { get; private set; }
[DataMember(Name = "criteria")]
- public IList<int> Criteria;
+ public IList<int> Criteria { get; private set; }
[DataMember(Name = "criteriaQuantity")]
- public IList<long> CriteriaQuantity;
+ public IList<long> CriteriaQuantity { get; private set; }
[DataMember(Name = "criteriaTimestamp")]
- public IList<double> CriteriaTimestamp;
+ public IList<double> CriteriaTimestamp { get; private set; }
[DataMember(Name = "criteriaCreated")]
- public IList<double> CriteriaCreated;
+ public IList<double> CriteriaCreated { get; private set; }
}
}
View
14 WCPAPI/Appearance.cs
@@ -6,18 +6,18 @@ namespace WCPAPI
public class Appearance
{
[DataMember(Name = "faceVariation")]
- public int FaceVariation;
+ public int FaceVariation { get; private set; }
[DataMember(Name = "skinColor")]
- public int SkinColor;
+ public int SkinColor { get; private set; }
[DataMember(Name = "hairVariation")]
- public int HairVariation;
+ public int HairVariation { get; private set; }
[DataMember(Name = "hairColor")]
- public int HairColor;
+ public int HairColor { get; private set; }
[DataMember(Name = "featureVariation")]
- public int FeatureVariation;
+ public int FeatureVariation { get; private set; }
[DataMember(Name = "showHelm")]
- public bool ShowHelm;
+ public bool ShowHelm { get; private set; }
[DataMember(Name = "showCloak")]
- public bool ShowCloak;
+ public bool ShowCloak { get; private set; }
}
}
View
22 WCPAPI/Guild.cs
@@ -6,31 +6,31 @@ namespace WCPAPI
public class Guild
{
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "realm")]
- public string Realm;
+ public string Realm { get; private set; }
[DataMember(Name = "level")]
- public int Level;
+ public int Level { get; private set; }
[DataMember(Name = "members")]
- public int Members;
+ public int Members { get; private set; }
[DataMember(Name = "achievementPoints")]
- public int AchievementPoints;
+ public int AchievementPoints { get; private set; }
[DataMember(Name = "emblem")]
- public Emblem Emblem;
+ public Emblem Emblem { get; private set; }
}
[DataContract]
public class Emblem
{
[DataMember(Name = "icon")]
- public int Icon;
+ public int Icon { get; private set; }
[DataMember(Name = "iconColor")]
- public string IconColor;
+ public string IconColor { get; private set; }
[DataMember(Name = "border")]
- public int Border;
+ public int Border { get; private set; }
[DataMember(Name = "borderColor")]
- public string BorderColor;
+ public string BorderColor { get; private set; }
[DataMember(Name = "backgroundColor")]
- public string BackgroundColor;
+ public string BackgroundColor { get; private set; }
}
}
View
26 WCPAPI/Item.cs
@@ -8,36 +8,36 @@ public class Item
{
#pragma warning disable 0649
[DataMember(Name = "id")]
- public int Id;
+ public int Id { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "icon")]
- public string Icon;
+ public string Icon { get; private set; }
[DataMember(Name = "quality")]
- public int Quality;
+ public int Quality { get; private set; }
[DataMember(Name = "tooltipParams")]
- public TooltipParams TooltipParams;
+ public TooltipParams TooltipParams { get; private set; }
#pragma warning disable 0649
}
[DataContract]
public class TooltipParams
{
[DataMember(Name = "gem0")]
- public int Gem0;
+ public int Gem0 { get; private set; }
[DataMember(Name = "gem1")]
- public int Gem1;
+ public int Gem1 { get; private set; }
[DataMember(Name = "enchant")]
- public int Enchant;
+ public int Enchant { get; private set; }
[DataMember(Name = "set")]
- public IList<int> Set;
+ public IList<int> Set { get; private set; }
[DataMember(Name = "reforge")]
- public int Reforge;
+ public int Reforge { get; private set; }
[DataMember(Name = "suffix")]
- public int Suffix;
+ public int Suffix { get; private set; }
[DataMember(Name = "seed")]
- public int Seed;
+ public int Seed { get; private set; }
[DataMember(Name = "extraSocket")]
- public bool ExtraSocket;
+ public bool ExtraSocket { get; private set; }
}
}
View
40 WCPAPI/Items.cs
@@ -7,45 +7,45 @@ public class Items
{
#pragma warning disable 0649
[DataMember(Name = "averageItemLevel")]
- public int AverageItemLevel;
+ public int AverageItemLevel { get; private set; }
[DataMember(Name = "averageItemLevelEquipped")]
- public int AverageItemLevelEquipped;
+ public int AverageItemLevelEquipped { get; private set; }
[DataMember(Name = "head")]
- public Item Head;
+ public Item Head { get; private set; }
[DataMember(Name = "neck")]
- public Item Neck;
+ public Item Neck { get; private set; }
[DataMember(Name = "shoulder")]
- public Item Shoulder;
+ public Item Shoulder { get; private set; }
[DataMember(Name = "back")]
- public Item Back;
+ public Item Back { get; private set; }
[DataMember(Name = "chest")]
- public Item Chest;
+ public Item Chest { get; private set; }
[DataMember(Name = "shirt")]
- public Item Shirt;
+ public Item Shirt { get; private set; }
[DataMember(Name = "tabard")]
- public Item Tabard;
+ public Item Tabard { get; private set; }
[DataMember(Name = "wrist")]
- public Item Wrist;
+ public Item Wrist { get; private set; }
[DataMember(Name = "hands")]
- public Item Hands;
+ public Item Hands { get; private set; }
[DataMember(Name = "waist")]
- public Item Waist;
+ public Item Waist { get; private set; }
[DataMember(Name = "legs")]
- public Item Legs;
+ public Item Legs { get; private set; }
[DataMember(Name = "feet")]
- public Item Feet;
+ public Item Feet { get; private set; }
[DataMember(Name = "finger1")]
- public Item Finger1;
+ public Item Finger1 { get; private set; }
[DataMember(Name = "finger2")]
- public Item Finger2;
+ public Item Finger2 { get; private set; }
[DataMember(Name = "trinket1")]
- public Item Trinket1;
+ public Item Trinket1 { get; private set; }
[DataMember(Name = "trinket2")]
- public Item Trinket2;
+ public Item Trinket2 { get; private set; }
[DataMember(Name = "mainHand")]
- public Item MainHand;
+ public Item MainHand { get; private set; }
[DataMember(Name = "ranged")]
- public Item Ranged;
+ public Item Ranged { get; private set; }
#pragma warning restore 0649
}
}
View
8 WCPAPI/Pet.cs
@@ -6,12 +6,12 @@ namespace WCPAPI
public class Pet
{
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "creature")]
- public int Creature;
+ public int Creature { get; private set; }
[DataMember(Name = "slot")]
- public int Slot;
+ public int Slot { get; private set; }
[DataMember(Name = "selected")]
- public bool Selected;
+ public bool Selected { get; private set; }
}
}
View
16 WCPAPI/Professions.cs
@@ -7,25 +7,25 @@ namespace WCPAPI
public class Professions
{
[DataMember(Name = "primary")]
- public IList<Profession> Primary;
+ public IList<Profession> Primary { get; private set; }
[DataMember(Name = "secondary")]
- public IList<Profession> Secondary;
+ public IList<Profession> Secondary { get; private set; }
}
[DataContract]
public class Profession
{
[DataMember(Name = "id")]
- public int Id;
+ public int Id { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "icon")]
- public string Icon;
+ public string Icon { get; private set; }
[DataMember(Name = "rank")]
- public int Rank;
+ public int Rank { get; private set; }
[DataMember(Name = "max")]
- public int Max;
+ public int Max { get; private set; }
[DataMember(Name = "recipes")]
- public IList<int> Recipes;
+ public IList<int> Recipes { get; private set; }
}
}
View
20 WCPAPI/Progression.cs
@@ -9,7 +9,7 @@ namespace WCPAPI
public class Progression : ICollection
{
[DataMember(Name = "raids")]
- public IList<Raid> Raids;
+ public IList<Raid> Raids { get; private set; }
public void CopyTo(Array array, int index)
{
@@ -41,15 +41,15 @@ public IEnumerator GetEnumerator()
public class Raid
{
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "normal")]
- public int Bormal;
+ public int Normal { get; private set; }
[DataMember(Name = "heroic")]
- public int Heroic;
+ public int Heroic { get; private set; }
[DataMember(Name = "id")]
- public int Id;
+ public int Id { get; private set; }
[DataMember(Name = "bosses")]
- public IList<Boss> Bosses;
+ public IList<Boss> Bosses { get; private set; }
public override string ToString()
{
@@ -61,12 +61,12 @@ public override string ToString()
public class Boss
{
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "normalKills")]
- public int NormalKills;
+ public int NormalKills { get; private set; }
[DataMember(Name = "heroicKills")]
- public int HeroicKills;
+ public int HeroicKills { get; private set; }
[DataMember(Name = "id")]
- public int Id;
+ public int Id { get; private set; }
}
}
View
8 WCPAPI/Realm.cs
@@ -28,13 +28,13 @@ public class Realm
[DataMember(Name = "population")]
private string m_population;
[DataMember(Name = "queue")]
- public bool Queue;
+ public bool Queue { get; private set; }
[DataMember(Name = "status")]
- public bool Status;
+ public bool Status { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "slug")]
- public string Slug;
+ public string Slug { get; private set; }
#pragma warning restore 0649
public RealmType Type
View
2 WCPAPI/RealmStatus.cs
@@ -10,7 +10,7 @@ namespace WCPAPI
public class RealmStatus
{
[DataMember(Name = "realms")]
- public IList<Realm> Realms;
+ public IList<Realm> Realms { get; private set; }
const string baseURL = "http://{0}.battle.net/api/wow/realm/status{1}";
//const string baseURLCN = "http://battlenet.com.cn/api/wow/realm/status{1}";
View
10 WCPAPI/Reputation.cs
@@ -18,14 +18,14 @@ public enum RepStanding
public class Reputation
{
[DataMember(Name = "id")]
- public int Id;
+ public int Id { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "standing")]
- public RepStanding Standing;
+ public RepStanding Standing { get; private set; }
[DataMember(Name = "value")]
- public int Value;
+ public int Value { get; private set; }
[DataMember(Name = "max")]
- public int Max;
+ public int Max { get; private set; }
}
}
View
30 WCPAPI/Spec.cs
@@ -7,49 +7,49 @@ namespace WCPAPI
public class Spec
{
[DataMember(Name = "selected")]
- public bool Selected;
+ public bool Selected { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "icon")]
- public string Icon;
+ public string Icon { get; private set; }
[DataMember(Name = "build")]
- public string Build;
+ public string Build { get; private set; }
[DataMember(Name = "trees")]
- public IList<Tree> Trees;
+ public IList<Tree> Trees { get; private set; }
[DataMember(Name = "glyphs")]
- public Glyphs Glyphs;
+ public Glyphs Glyphs { get; private set; }
}
[DataContract]
public class Tree
{
[DataMember(Name = "points")]
- public string Points;
+ public string Points { get; private set; }
[DataMember(Name = "total")]
- public int Total;
+ public int Total { get; private set; }
}
[DataContract]
public class Glyph
{
[DataMember(Name = "glyph")]
- public int Id;
+ public int Id { get; private set; }
[DataMember(Name = "item")]
- public int Item;
+ public int Item { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "icon")]
- public string Icon;
+ public string Icon { get; private set; }
}
[DataContract]
public class Glyphs
{
[DataMember(Name = "prime")]
- public IList<Glyph> Prime;
+ public IList<Glyph> Prime { get; private set; }
[DataMember(Name = "major")]
- public IList<Glyph> Major;
+ public IList<Glyph> Major { get; private set; }
[DataMember(Name = "minor")]
- public IList<Glyph> Minor;
+ public IList<Glyph> Minor { get; private set; }
}
}
View
104 WCPAPI/Stats.cs
@@ -6,108 +6,108 @@ namespace WCPAPI
public class Stats
{
[DataMember(Name = "health")]
- public int Health;
+ public int Health { get; private set; }
[DataMember(Name = "powerType")]
- public string PowerType;
+ public string PowerType { get; private set; }
[DataMember(Name = "power")]
- public int Power;
+ public int Power { get; private set; }
[DataMember(Name = "str")]
- public int Strength;
+ public int Strength { get; private set; }
[DataMember(Name = "agi")]
- public int Agility;
+ public int Agility { get; private set; }
[DataMember(Name = "sta")]
- public int Stamina;
+ public int Stamina { get; private set; }
[DataMember(Name="int")]
- public int Intellect;
+ public int Intellect { get; private set; }
[DataMember(Name = "spr")]
- public int Spirit;
+ public int Spirit { get; private set; }
[DataMember(Name = "attackPower")]
- public int AttackPower;
+ public int AttackPower { get; private set; }
[DataMember(Name = "rangedAttackPower")]
- public int RangedAttackPower;
+ public int RangedAttackPower { get; private set; }
[DataMember(Name = "mastery")]
- public float Mastery;
+ public float Mastery { get; private set; }
[DataMember(Name = "masteryRating")]
- public int MasteryRating;
+ public int MasteryRating { get; private set; }
[DataMember(Name = "crit")]
- public float Crit;
+ public float Crit { get; private set; }
[DataMember(Name = "critRating")]
- public int CritRating;
+ public int CritRating { get; private set; }
[DataMember(Name = "hitPercent")]
- public float HitPercent;
+ public float HitPercent { get; private set; }
[DataMember(Name = "hitRating")]
- public int HitRating;
+ public int HitRating { get; private set; }
[DataMember(Name = "hasteRating")]
- public int HasteRating;
+ public int HasteRating { get; private set; }
[DataMember(Name = "expertiseRating")]
- public int ExpertiseRating;
+ public int ExpertiseRating { get; private set; }
[DataMember(Name = "spellPower")]
- public int SpellPower;
+ public int SpellPower { get; private set; }
[DataMember(Name = "spellPen")]
- public int SpellPen;
+ public int SpellPen { get; private set; }
[DataMember(Name = "spellCrit")]
- public float SpellCrit;
+ public float SpellCrit { get; private set; }
[DataMember(Name = "spellCritRating")]
- public int SpellCritRating;
+ public int SpellCritRating { get; private set; }
[DataMember(Name = "spellHitPercent")]
- public float SpellHitPercent;
+ public float SpellHitPercent { get; private set; }
[DataMember(Name = "spellHitRating")]
- public int SpellHitRating;
+ public int SpellHitRating { get; private set; }
[DataMember(Name = "mana5")]
- public float Mana5;
+ public float Mana5 { get; private set; }
[DataMember(Name = "mana5Combat")]
- public float Mana5Combat;
+ public float Mana5Combat { get; private set; }
[DataMember(Name = "armor")]
- public int Armor;
+ public int Armor { get; private set; }
[DataMember(Name = "dodge")]
- public float Dodge;
+ public float Dodge { get; private set; }
[DataMember(Name = "dodgeRating")]
- public int DodgeRating;
+ public int DodgeRating { get; private set; }
[DataMember(Name = "parry")]
- public float Parry;
+ public float Parry { get; private set; }
[DataMember(Name = "parryRating")]
- public int ParryRating;
+ public int ParryRating { get; private set; }
[DataMember(Name = "block")]
- public float Block;
+ public float Block { get; private set; }
[DataMember(Name = "blockRating")]
- public int BlockRating;
+ public int BlockRating { get; private set; }
[DataMember(Name = "resil")]
- public int Resilience;
+ public int Resilience { get; private set; }
[DataMember(Name = "mainHandDmgMin")]
- public float MainHandDmgMin;
+ public float MainHandDmgMin { get; private set; }
[DataMember(Name = "mainHandDmgMax")]
- public float MainHandDmgMax;
+ public float MainHandDmgMax { get; private set; }
[DataMember(Name = "mainHandSpeed")]
- public float MainHandSpeed;
+ public float MainHandSpeed { get; private set; }
[DataMember(Name = "mainHandDps")]
- public float MainHandDps;
+ public float MainHandDps { get; private set; }
[DataMember(Name = "mainHandExpertise")]
- public int MainHandExpertise;
+ public int MainHandExpertise { get; private set; }
[DataMember(Name = "offHandDmgMin")]
- public float OffHandDmgMin;
+ public float OffHandDmgMin { get; private set; }
[DataMember(Name = "offHandDmgMax")]
- public float OffHandDmgMax;
+ public float OffHandDmgMax { get; private set; }
[DataMember(Name = "offHandSpeed")]
- public float OffHandSpeed;
+ public float OffHandSpeed { get; private set; }
[DataMember(Name = "offHandDps")]
- public float OffHandDps;
+ public float OffHandDps { get; private set; }
[DataMember(Name = "offHandExpertise")]
- public int OffHandExpertise;
+ public int OffHandExpertise { get; private set; }
[DataMember(Name = "rangedDmgMin")]
- public float RangedDmgMin;
+ public float RangedDmgMin { get; private set; }
[DataMember(Name = "rangedDmgMax")]
- public float RangedDmgMax;
+ public float RangedDmgMax { get; private set; }
[DataMember(Name = "rangedSpeed")]
- public float RangedSpeed;
+ public float RangedSpeed { get; private set; }
[DataMember(Name = "rangedDps")]
- public float RangedDps;
+ public float RangedDps { get; private set; }
[DataMember(Name = "rangedCrit")]
- public float RangedCrit;
+ public float RangedCrit { get; private set; }
[DataMember(Name = "rangedCritRating")]
- public int RangedCritRating;
+ public int RangedCritRating { get; private set; }
[DataMember(Name = "rangedHitPercent")]
- public float RangedHitPercent;
+ public float RangedHitPercent { get; private set; }
[DataMember(Name = "rangedHitRating")]
- public int RangedHitRating;
+ public int RangedHitRating { get; private set; }
}
}
View
6 WCPAPI/Title.cs
@@ -6,10 +6,10 @@ namespace WCPAPI
public class Title
{
[DataMember(Name = "id")]
- public int Id;
+ public int Id { get; private set; }
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "selected")]
- public bool Selected;
+ public bool Selected { get; private set; }
}
}
View
30 WowGuildInfo/Guild.cs
@@ -1,4 +1,5 @@
-using System.Collections.Generic;
+using System;
+using System.Collections.Generic;
using System.Runtime.Serialization;
using WCPAPI;
@@ -7,21 +8,32 @@ namespace WowGuildInfo
[DataContract]
public class Guild
{
+ #pragma warning disable 0649
[DataMember(Name = "lastModified")]
- public double LastModified;
+ private double m_lastModified;
[DataMember(Name = "name")]
- public string Name;
+ public string Name { get; private set; }
[DataMember(Name = "realm")]
- public string Realm;
+ public string Realm { get; private set; }
[DataMember(Name = "level")]
- public int Level;
+ public int Level { get; private set; }
[DataMember(Name = "side")]
- public int Side;
+ public int Side { get; private set; }
[DataMember(Name = "achievementPoints")]
- public int AchievementPoints;
+ public int AchievementPoints { get; private set; }
[DataMember(Name = "achievements", IsRequired=false)]
- public Achievements Achievements;
+ public Achievements Achievements { get; private set; }
[DataMember(Name = "members", IsRequired = false)]
- public IList<Member> Members;
+ public IList<Member> Members { get; private set; }
+ #pragma warning restore 0649
+
+ public DateTime LastModified
+ {
+ get
+ {
+ DateTime origin = new DateTime(1970, 1, 1, 0, 0, 0, 0);
+ return origin.AddSeconds(m_lastModified / 1000.0f);
+ }
+ }
}
}
View
4 WowGuildInfo/Member.cs
@@ -6,8 +6,8 @@ namespace WowGuildInfo
public class Member
{
[DataMember(Name="character")]
- public Character Character;
+ public Character Character { get; private set; }
[DataMember(Name="rank")]
- public int Rank;
+ public int Rank { get; private set; }
}
}

0 comments on commit e50a050

Please sign in to comment.