34 lines
991 B
C#
34 lines
991 B
C#
|
|
using Assets.Scripts.Apis.Models;
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using UnityEngine;
|
|||
|
|
|
|||
|
|
namespace Assets.Scripts.Apis
|
|||
|
|
{
|
|||
|
|
public class ActivityApi : ApiBase
|
|||
|
|
{
|
|||
|
|
public async Task<JsonResult<object>> GetCurrentActivityList()
|
|||
|
|
{
|
|||
|
|
var result = await GetAsync<JsonResult<object>>($"MapRouteActivityRecord/GetCurrentActivityList");
|
|||
|
|
return result;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public async Task<JsonResult<object>> JoinActivity(int id)
|
|||
|
|
{
|
|||
|
|
var result = await PostAsync<JsonResult<object>>($"MapRouteActivityRecord/Add", new { id });
|
|||
|
|
return result;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public async Task<JsonResult<object>> GetMapRouteRecordById(int id, int activityId)
|
|||
|
|
{
|
|||
|
|
var result = await GetAsync<JsonResult<object>>($"MapRouteActivityRecord/GetMapRouteRecordById");
|
|||
|
|
return result;
|
|||
|
|
}
|
|||
|
|
//
|
|||
|
|
}
|
|||
|
|
}
|