适配c2;新版设计稿;对战切换手势;主逻辑接通;使用think的阻力值,修改影子模式船位置

This commit is contained in:
Caiyanpeng committed 2022-03-25 18:02:34 +08:00
1 parent e6f3e2ecfa
commit ab653b994f
82 files changed
+25241 -8988

No files matched your search

+1 -1
View File
@@ -191,7 +191,7 @@ namespace Assets.Scripts.Apis
private async Task<T> ParseJsonAsync<T>(HttpResponseMessage response)
{
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
//Console.WriteLine(result);
return JsonConvert.DeserializeObject<T>(result, new JsonSerializerSettings {
DateTimeZoneHandling = DateTimeZoneHandling.Local
});
@@ -29,6 +29,8 @@ namespace Assets.Scripts.Apis.Models
public ushort StrokeCount { get; set; }
public uint TotalDistance { get; set; }
public int TotalTime { get; set; }
public int? Type { get; set; }
public double? TypeValue { get; set; }
}
public class RowerChartModel
{
@@ -36,6 +38,8 @@ namespace Assets.Scripts.Apis.Models
public ushort Pace { get; set; }
public uint Rate { get; set; }
public int HeartRate { get; set; }
public int Distance { get; set; }
public int StrokeCount { get; set; }
}
public class RowerResultModel
{
@@ -61,4 +65,45 @@ namespace Assets.Scripts.Apis.Models
public List<RowerChartModel> ChartList { get; set; }
public string Cover { get; set; }
}
public class SegmentList
{
public int Ticks { get; set; }
public int Distance { get; set; }
public int Speed { get; set; }
public int Power { get; set; }
public int HeartRate { get; set; }
public int StrokeCount { get; set; }
public int Energy { get; set; }
}
public class RowerRank
{
public string Id { get; set; }
public int UserId { get; set; }
public int Time { get; set; }
public int TotalDistance { get; set; }
public string NickName { get; set; }
public string WxHeadImg { get; set; }
public DateTime CreateTime { get; set; }
public bool isFinished { get; set; }
public List<RowerChartModel> list { get; set; }
public string Country { get; set; }
}
public class Info
{
public string CreateTime { get; set; }
public string MyRank { get; set; }
public int? Type { get; set; }
}
public class RowerSegmentData
{
public List<SegmentList> segmentList { get; set; }
public List<RowerRank> ranks { get; set; }
public Info info { get; set; }
}
}
+10
View File
@@ -32,9 +32,19 @@ namespace Assets.Scripts.Apis
return await GetAsync<JsonResult<RowerResultModel>>($"Rower/GetDetail?Id={id}");
}
public async Task<JsonResult<RowerSegmentData>> GetSegmentDataAndRanking(string id)
{
return await GetAsync<JsonResult<RowerSegmentData>>($"Rower/GetSegmentDataAndRanking?Id={id}");
}
public async Task<JsonResult<object>> Delete(string Id)
{
return await PostAsync<JsonResult<object>>($"Rower/Delete",new { Id});
}
public async Task<JsonResult<List<RowerRank>>> GetShadowList(RowerTaskPanel.RowerType rowerType)
{
return await GetAsync<JsonResult<List<RowerRank>>>($"Rower/GetShadowList?type={rowerType.type}&typeValue={rowerType.value}");
}
}
}