public static void UpdateInstructorDeck(InteractiveInstructorDeck deck, Action <InstructorDeckResponse> onComplete) { Dictionary <string, object> body = new Dictionary <string, object>() { { "team", User.current.selectedMembership.team._id }, { "deck", deck } }; ServerRequest.CallAPI("/interactive/instructor/decks/update", HTTPMethod.POST, body, (response) => ServerRequest.ResponseHandler(response, null, onComplete), true); }
public static void GenerateMinigameLink(InteractiveInstructorDeck deck, Action <MinigameLinkResponse> onComplete) { ServerRequest.CallAPI("/interactive/instructor/generatelink/" + deck._id, HTTPMethod.GET, null, (response) => ServerRequest.ResponseHandler(response, null, onComplete), false); }