SHARE
TWEET
Untitled
a guest
Jan 29th, 2018
57
in 5 min
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- private string _CurrentRank;
- private string _NextRank;
- private int _InvitesNeeded;
- private int _UserName;
- private int _VotePower;
- private string _thumbNailUrl;
- public int MyUses { get; set; }
- public string CurrentRank
- {
- get
- {
- if (MyUses >= 0 && MyUses <= 9)
- {
- CurrentRank = "SILVER";
- }
- else if (MyUses >= 10 && MyUses <= 24)
- {
- CurrentRank = "GOLD";
- }
- else if (MyUses >= 25 && MyUses <= 49)
- {
- CurrentRank = "PLATINA";
- }
- else
- {
- CurrentRank = "DIAMOND";
- }
- return _CurrentRank;
- }
- set
- {
- value = _CurrentRank;
- }
- }
- public string NextRank
- {
- get
- {
- return _NextRank;
- }
- set
- {
- if (CurrentRank.Equals("SILVER"))
- {
- NextRank = "GOLD";
- }
- else if (CurrentRank.Equals("GOLD"))
- {
- NextRank = "PLATINA";
- }
- else if (CurrentRank.Equals("PLATINA"))
- {
- _NextRank = "DIAMOND";
- }
- }
- }
- public int InvitesNeeded
- {
- get
- {
- return _InvitesNeeded;
- }
- set
- {
- if (MyUses >= 0 && MyUses <= 9)
- {
- InvitesNeeded = 10 - MyUses;
- }
- if (MyUses >= 10 && MyUses <= 24)
- {
- InvitesNeeded = 25 - MyUses;
- }
- if (MyUses >= 25 && MyUses <= 49)
- {
- _InvitesNeeded = 50 - MyUses;
- }
- }
- }
- public string UserName { get; set; }
- public int VotePower
- {
- get
- {
- return _VotePower;
- }
- set
- {
- if (CurrentRank.Equals("SILVER"))
- {
- VotePower = 1;
- }
- else if (CurrentRank.Equals("GOLD"))
- {
- VotePower = 2;
- }
- else if (CurrentRank.Equals("PLATINA"))
- {
- VotePower = 3;
- }
- else
- {
- _VotePower = 4;
- }
- }
- }
- public string thumbNailUrl
- {
- get
- {
- return _thumbNailUrl;
- }
- set
- {
- if (CurrentRank.Equals("SILVER"))
- {
- thumbNailUrl = "https://puu.sh/zbrEy/41fbe6a765.png";
- }
- else if (CurrentRank.Equals("GOLD"))
- {
- thumbNailUrl = "https://puu.sh/zbrFF/7ee8119a9b.png";
- }
- else if (CurrentRank.Equals("PLATINA"))
- {
- thumbNailUrl = "https://puu.sh/zbrGO/6ebcee253c.png";
- }
- else
- {
- _thumbNailUrl = "https://puu.sh/zbrGh/88b7c13da4.png";
- }
- }
- }
RAW Paste Data

