Exemplo n.º 1
0
        private void SendRequest(LevelInfo info)
        {
            var model = new AddAttemptModel
            {
                LevelName = info.LevelId,
                Stars     = info.StarsCount,
                Time      = info.Time
            };

            IAmItHttpRequest.Post <AddAttemptModel>(model, IAmItServerMethods.ADD_ATTEMPT, this);
        }
Exemplo n.º 2
0
 public void Synchronize()
 {
     IAmItHttpRequest.Get <GetUserInformationModel>(IAmItServerMethods.GET_INFO, this);
     IsUsed = true;
 }