public JsonRestRequest BuildGetActorRequest(long activityId, long actorId) { var request = new JsonRestRequest(Endpoints.ActorsUrl, Method.GET); request.AddUrlSegment("activityId", activityId.ToString()); request.AddUrlSegment("actorId", actorId.ToString()); return(request); }
public JsonRestRequest BuildGetMapRequest(long mapId) { var request = new JsonRestRequest(Endpoints.MapsUrl, Method.GET); request.AddUrlSegment("mapId", mapId.ToString()); return(request); }
public JsonRestRequest BuildAddActorRequest(Actor actor) { var request = new JsonRestRequest(Endpoints.ActorsUrl, Method.POST); request.AddUrlSegment("activityId", actor.ActivityId.ToString()); request.RemoveUrlSegment("actorId"); request.AddBody(actor); return(request); }
public JsonRestRequest BuildAddActionRequest(long activityId, Action action) { var request = new JsonRestRequest(Endpoints.ActionsUrl, Method.POST); request.AddUrlSegment("activityId", action.ActivityId.ToString()); request.RemoveUrlSegment("actionId"); request.AddBody(action); return(request); }