Пример #1
0
    //public AzureLevelItem GetCurrentLevelData()
    //{
    //    return myAzureLevelData[currentLevel - 1];
    //}

    public void InitializeLevelData()
    {
        WebAPI myWebAPI = new WebAPI();
        string response = myWebAPI.Get("http://azurewebapihuntsman.azurewebsites.net/api/WordGameLevels");
        myAzureLevelData = JsonConvert.DeserializeObject<AzureLevelItemList>(response);
        //Save();
        //Load();
    }
Пример #2
0
 public SurveyList()
 {
     InitializeComponent();
     ViewModel      = new SurveyListViewModel();
     BindingContext = ViewModel;
     WebAPI api  = new WebAPI();
     string list = api.Get("survey/getlist"); //lijst van mogelijke surveys ophalen
     int    a    = 0;
 }
Пример #3
0
 public static WWW RequestUserAnswers()
 {
     WebAPI.apiPlace = "/user/" + UserManager.user.id + "/show-answers/";
     return(WebAPI.Get());
 }
Пример #4
0
 public static WWW RequestGroupAnswers()
 {
     WebAPI.apiPlace = "/group/" + GroupManager.group.id + "/show-answers/";
     return(WebAPI.Get());
 }
Пример #5
0
 public static WWW RequestGroupInfo()
 {
     WebAPI.apiPlace = "/group/show/" + GroupManager.group.id + "/";
     return(WebAPI.Get());
 }
Пример #6
0
 public static WWW RequestGroups()
 {
     WebAPI.apiPlace = "/user/" + UserManager.user.id + "/show-groups/";
     return(WebAPI.Get());
 }
Пример #7
0
 public static WWW RequestPublicMisions()
 {
     WebAPI.apiPlace = "/mission/public/";
     return(WebAPI.Get());
 }
Пример #8
0
 public static WWW RequestPrivateMission(string missionID)
 {
     WebAPI.apiPlace = "/mission/private/" + missionID + "/";
     return(WebAPI.Get());
 }
Пример #9
0
    public static WWW RequestVersion()
    {
        WebAPI.apiPlace = "/sysinfo/mobile-version/";

        return(WebAPI.Get());
    }
Пример #10
0
 public static WWW RequestPublicQuizzes()
 {
     WebAPI.apiPlace = "/quiz/public/";
     return(WebAPI.Get());
 }
Пример #11
0
 public static WWW RequestPrivateQuiz(string quizID)
 {
     WebAPI.apiPlace = "/quiz/private/" + quizID + "/";
     return(WebAPI.Get());
 }
Пример #12
0
 public static WWW RequestGroupRanking()
 {
     WebAPI.apiPlace = "/group/rank/";
     return(WebAPI.Get());
 }
Пример #13
0
    public static WWW RequestUserRanking()
    {
        WebAPI.apiPlace = "/user/rank/";

        return(WebAPI.Get());
    }
Пример #14
0
    public static WWW RequestUser(int userID)
    {
        WebAPI.apiPlace = "/user/show/" + userID + "/";

        return(WebAPI.Get());
    }