Example #1
0
        public static IAsyncResult BeginAddTrophy(string gameId, string privateKey, string username, string userToken, string trophyId, AsyncCallback callback = null, object asyncState = null)
        {
            var request = TrophyRequestFactory.CreateAddAchieveRequest(gameId, privateKey, username, userToken, trophyId);

            return(request.Begin(callback, asyncState));
        }
Example #2
0
        public static Trophy[] GetAll(string gameId, string privateKey, string username, string userToken, TrophyFilter filter = TrophyFilter.All)
        {
            var request = TrophyRequestFactory.CreateGetRequest(gameId, privateKey, username, userToken, filter);

            return(request.Process(null));
        }
Example #3
0
        public static Trophy GetById(string gameId, string privateKey, string username, string userToken, string trophyId)
        {
            var request = TrophyRequestFactory.CreateGetRequest(gameId, privateKey, username, userToken, trophyId);

            return(request.Process(null)[0]);
        }
Example #4
0
        public static IAsyncResult BeginGetAll(string gameId, string privateKey, string username, string userToken, TrophyFilter filter = TrophyFilter.All, AsyncCallback callback = null, object asyncState = null)
        {
            var request = TrophyRequestFactory.CreateGetRequest(gameId, privateKey, username, userToken, filter);

            return(request.Begin(callback, asyncState));
        }
Example #5
0
        public static string AddTrophy(string gameId, string privateKey, string username, string userToken, string trophyId)
        {
            var request = TrophyRequestFactory.CreateAddAchieveRequest(gameId, privateKey, username, userToken, trophyId);

            return(request.Process(null));
        }