2021-03-30 17:15:16 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Assets.Scenes.Ride.Scripts.Model
|
|
|
|
|
|
{
|
|
|
|
|
|
public abstract class BaseRider
|
|
|
|
|
|
{
|
|
|
|
|
|
//internal static MapWorkoutService service = new MapWorkoutService();
|
|
|
|
|
|
|
|
|
|
|
|
public abstract RiderType riderType { get; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户Id
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string InMapId
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return this.riderType.ToString() + "-" + UserId;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 用户姓名
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string NickName { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 微信头像
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string WxHeadImg { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 最后骑行的距离
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public double EndDistance { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 是否是当前登陆人
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool IsSelf
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
2021-04-12 17:35:56 +08:00
|
|
|
|
return this.UserId == App.CurrentUser.Id;
|
2021-03-30 17:15:16 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 圆形头像
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string CircHeadImg
|
|
|
|
|
|
{
|
|
|
|
|
|
get
|
|
|
|
|
|
{
|
|
|
|
|
|
return "";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|