12345678910111213141516171819 |
- using System.Collections;
- public class ChallengeRequestUIData
- {
- public RequestInfo requestInfo;
- public int score;
- public int challengeId;
- public int levelId;
- public string name { get { return requestInfo.senderName; } }
- public string otherFacebookId { get { return requestInfo.senderID; } }
- public ChallengeRequestUIData(RequestInfo info)
- {
- requestInfo = info;
- Hashtable keyValuePairs = MessageCenter.ParseRequestData(info.data);
- int.TryParse((string)keyValuePairs["levelid"], out levelId);
- int.TryParse((string)keyValuePairs["score"], out score);
- int.TryParse((string)keyValuePairs["challengeid"], out challengeId);
- }
- }
|