Add IsMinILevel

main
ilitirit 3 years ago
parent 797690bfdc
commit bcb941c381

@ -60,6 +60,7 @@ namespace Expedience.Api.Consumers
UserId = user.UserId,
HasEcho = message.DutyInfo.HasEcho,
IsUnrestricted = message.DutyInfo.IsUnrestricted,
IsMinILevel = message.DutyInfo.IsMinILevel,
HasNpcMembers = message.DutyInfo.IsNpcSupported,
StartTime = message.DutyStartDateUtc,
EndTime = message.DutyCompletionDateUtc,

@ -7,6 +7,7 @@
public int DutyId { get; set; }
public bool HasEcho { get; set; }
public bool IsUnrestricted { get; set; }
public bool IsMinILevel { get; set; }
public bool HasNpcMembers { get; set; }
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
@ -19,5 +20,6 @@
public string Lang { get; set; }
public List<DutyMember> DutyMembers { get; set; }
public string DataCenter { get; set; }
}
}

@ -22,7 +22,9 @@ namespace Expedience.Models
public bool IsUnrestricted { get; set; }
public bool HasNpcMembers { get; set; }
public bool HasEcho { get; set; }
public string DataCenter { get; set; }
public bool IsMinILevel { get; set; }
public void EndDuty()
{

@ -18,6 +18,7 @@ namespace Expedience.Models
DutyId = currentDuty.DutyId,
DutyName = currentDuty.DutyName,
IsUnrestricted = currentDuty.IsUnrestricted,
IsMinILevel = currentDuty.IsMinILevel,
IsNpcSupported = currentDuty.PartyMembers.Any(p => p.IsNpc),
HasEcho = currentDuty.HasEcho,
};

@ -13,5 +13,6 @@ namespace Expedience.Models
public bool IsUnrestricted { get; set; }
public bool HasEcho { get; set; }
public bool IsNpcSupported { get; set; }
public bool IsMinILevel { get; internal set; }
}
}

Loading…
Cancel
Save