//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(); }
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; }
public static WWW RequestUserAnswers() { WebAPI.apiPlace = "/user/" + UserManager.user.id + "/show-answers/"; return(WebAPI.Get()); }
public static WWW RequestGroupAnswers() { WebAPI.apiPlace = "/group/" + GroupManager.group.id + "/show-answers/"; return(WebAPI.Get()); }
public static WWW RequestGroupInfo() { WebAPI.apiPlace = "/group/show/" + GroupManager.group.id + "/"; return(WebAPI.Get()); }
public static WWW RequestGroups() { WebAPI.apiPlace = "/user/" + UserManager.user.id + "/show-groups/"; return(WebAPI.Get()); }
public static WWW RequestPublicMisions() { WebAPI.apiPlace = "/mission/public/"; return(WebAPI.Get()); }
public static WWW RequestPrivateMission(string missionID) { WebAPI.apiPlace = "/mission/private/" + missionID + "/"; return(WebAPI.Get()); }
public static WWW RequestVersion() { WebAPI.apiPlace = "/sysinfo/mobile-version/"; return(WebAPI.Get()); }
public static WWW RequestPublicQuizzes() { WebAPI.apiPlace = "/quiz/public/"; return(WebAPI.Get()); }
public static WWW RequestPrivateQuiz(string quizID) { WebAPI.apiPlace = "/quiz/private/" + quizID + "/"; return(WebAPI.Get()); }
public static WWW RequestGroupRanking() { WebAPI.apiPlace = "/group/rank/"; return(WebAPI.Get()); }
public static WWW RequestUserRanking() { WebAPI.apiPlace = "/user/rank/"; return(WebAPI.Get()); }
public static WWW RequestUser(int userID) { WebAPI.apiPlace = "/user/show/" + userID + "/"; return(WebAPI.Get()); }