godzcheater

GamerPic Class

Sep 27th, 2011
336
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.97 KB | None | 0 0
  1.     public class GamerPicture
  2.     {
  3.         public uint TitleID;
  4.         public int ImageID;
  5.  
  6.         public string PNGURL64
  7.         {
  8.             get
  9.             {
  10.                 return "http://image.xboxlive.com/global/t." + TitleID.ToString("x") + "/tile/0/" + (ImageID + 0x20000).ToString("x");
  11.             }
  12.         }//URL :P
  13.         public string FileName64
  14.         {
  15.             get
  16.             {
  17.                 return "64_" + TitleID.ToString("x") + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x20000) + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x10000) + ".png";
  18.             }
  19.         }//the name of the image when its saved
  20.         public string PNGURL32
  21.         {
  22.             get
  23.             {
  24.                 return "http://image.xboxlive.com/global/t." + TitleID.ToString("x") + "/tile/0/" + (ImageID + 0x10000).ToString("x");
  25.             }
  26.         }
  27.         public string FileName32
  28.         {
  29.             get
  30.             {
  31.                 return "32_" + TitleID.ToString("x") + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x20000) + (System.Convert.ToInt64(ImageID.ToString("x")) + 0x10000) + ".png";
  32.             }
  33.         }
  34.  
  35.         public string RefrenceKey
  36.         {
  37.             get
  38.             {
  39.                 return TitleID.ToString("x") + (ImageID + 0x20000).ToString("x8") + (ImageID + 0x10000).ToString("x8");
  40.             }
  41.         }//the key in the fffe07d1's setting
  42.  
  43.         public GamerPicture(uint _TitleID, int _ImageID)
  44.         {
  45.             TitleID = _TitleID;
  46.             ImageID = _ImageID;
  47.         }
  48.  
  49.         public GamerPicture(string PictureLink64)
  50.         {
  51.             //http://image.xboxlive.com/global/t.fffe07d1/tile/0/20000
  52.             TitleID = System.UInt32.Parse(PictureLink64.Remove(0, 35).Remove(8, 13), System.Globalization.NumberStyles.HexNumber);
  53.             ImageID = System.Int32.Parse(PictureLink64.Remove(0, 51), System.Globalization.NumberStyles.HexNumber) - 0x20000;
  54.         }
  55.     }
Advertisement
Add Comment
Please, Sign In to add comment