daily pastebin goal
40%
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!
  1.         private string _CurrentRank;
  2.         private string _NextRank;
  3.         private int _InvitesNeeded;
  4.         private int _UserName;
  5.         private int _VotePower;
  6.         private string _thumbNailUrl;
  7.  
  8.         public int MyUses { get; set; }
  9.         public string CurrentRank
  10.         {
  11.             get
  12.             {
  13.                 if (MyUses >= 0 && MyUses <= 9)
  14.                 {
  15.                     CurrentRank = "SILVER";
  16.                 }
  17.                 else if (MyUses >= 10 && MyUses <= 24)
  18.                 {
  19.                     CurrentRank = "GOLD";
  20.                 }
  21.                 else if (MyUses >= 25 && MyUses <= 49)
  22.                 {
  23.                     CurrentRank = "PLATINA";
  24.                 }
  25.                 else
  26.                 {
  27.                     CurrentRank = "DIAMOND";
  28.                 }
  29.                 return _CurrentRank;
  30.             }
  31.             set
  32.             {
  33.                 value = _CurrentRank;
  34.             }
  35.         }
  36.         public string NextRank
  37.         {
  38.             get
  39.             {
  40.                 return _NextRank;
  41.             }
  42.             set
  43.             {
  44.                 if (CurrentRank.Equals("SILVER"))
  45.                 {
  46.                     NextRank = "GOLD";
  47.                 }
  48.                 else if (CurrentRank.Equals("GOLD"))
  49.                 {
  50.                     NextRank = "PLATINA";
  51.                 }
  52.                 else if (CurrentRank.Equals("PLATINA"))
  53.                 {
  54.                     _NextRank = "DIAMOND";
  55.                 }
  56.             }
  57.         }
  58.         public int InvitesNeeded
  59.         {
  60.             get
  61.             {
  62.                 return _InvitesNeeded;
  63.             }
  64.             set
  65.             {
  66.                 if (MyUses >= 0 && MyUses <= 9)
  67.                 {
  68.                     InvitesNeeded = 10 - MyUses;
  69.                 }
  70.                 if (MyUses >= 10 && MyUses <= 24)
  71.                 {
  72.                     InvitesNeeded = 25 - MyUses;
  73.                 }
  74.                 if (MyUses >= 25 && MyUses <= 49)
  75.                 {
  76.                     _InvitesNeeded = 50 - MyUses;
  77.                 }
  78.             }
  79.         }
  80.         public string UserName { get; set; }
  81.         public int VotePower
  82.         {
  83.             get
  84.             {
  85.                 return _VotePower;
  86.             }
  87.             set
  88.             {
  89.                 if (CurrentRank.Equals("SILVER"))
  90.                 {
  91.                     VotePower = 1;
  92.                 }
  93.                 else if (CurrentRank.Equals("GOLD"))
  94.                 {
  95.                     VotePower = 2;
  96.                 }
  97.                 else if (CurrentRank.Equals("PLATINA"))
  98.                 {
  99.                     VotePower = 3;
  100.                 }
  101.                 else
  102.                 {
  103.                     _VotePower = 4;
  104.                 }
  105.             }
  106.         }
  107.         public string thumbNailUrl
  108.         {
  109.  
  110.             get
  111.             {
  112.                 return _thumbNailUrl;
  113.             }
  114.             set
  115.             {
  116.                 if (CurrentRank.Equals("SILVER"))
  117.                 {
  118.                     thumbNailUrl = "https://puu.sh/zbrEy/41fbe6a765.png";
  119.                 }
  120.                 else if (CurrentRank.Equals("GOLD"))
  121.                 {
  122.                     thumbNailUrl = "https://puu.sh/zbrFF/7ee8119a9b.png";
  123.                 }
  124.                 else if (CurrentRank.Equals("PLATINA"))
  125.                 {
  126.                     thumbNailUrl = "https://puu.sh/zbrGO/6ebcee253c.png";
  127.                 }
  128.                 else
  129.                 {
  130.                     _thumbNailUrl = "https://puu.sh/zbrGh/88b7c13da4.png";
  131.                 }
  132.             }
  133.         }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top