This commit is contained in:
@@ -88,6 +88,7 @@ namespace Sockeye.Api.Controllers
|
||||
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(NotifyMailSecurity).ToString()), "Notification SMTP mail server security method"));
|
||||
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(SockEvent).ToString()), "Event log object change types"));
|
||||
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(SockDaysOfWeek).ToString()), "Days of the week"));
|
||||
ret.Add(new KeyValuePair<string, string>(StringUtil.TrimTypeName(typeof(TrialRequestStatus).ToString()), "Trial license request status"));
|
||||
return Ok(ApiOkResponse.Response(ret));
|
||||
}
|
||||
|
||||
@@ -186,7 +187,7 @@ namespace Sockeye.Api.Controllers
|
||||
{
|
||||
|
||||
var nameToFetch = t.ToString();
|
||||
|
||||
|
||||
TranslationKeysToFetch.Add(nameToFetch);
|
||||
}
|
||||
}
|
||||
@@ -197,7 +198,7 @@ namespace Sockeye.Api.Controllers
|
||||
if (t.HasAttribute(typeof(ImportableBizObjectAttribute)))
|
||||
{
|
||||
var tName = t.ToString();
|
||||
|
||||
|
||||
string name = string.Empty;
|
||||
if (LT.ContainsKey(tName))
|
||||
{
|
||||
@@ -498,7 +499,7 @@ namespace Sockeye.Api.Controllers
|
||||
TranslationKeysToFetch.Add("NotifyEventPMGenerationFailed");
|
||||
TranslationKeysToFetch.Add("NotifyEventPMInsufficientInventory");
|
||||
TranslationKeysToFetch.Add("NotifyEventReviewImminent");
|
||||
TranslationKeysToFetch.Add("NotifyEventDirectSMTPMessage");
|
||||
TranslationKeysToFetch.Add("NotifyEventDirectSMTPMessage");
|
||||
|
||||
var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, translationId);
|
||||
|
||||
@@ -538,13 +539,7 @@ namespace Sockeye.Api.Controllers
|
||||
ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecuritySSLTLS"], Id = (long)NotifyMailSecurity.SSLTLS });
|
||||
ReturnList.Add(new NameIdItem() { Name = LT["NotifyMailSecurityStartTls"], Id = (long)NotifyMailSecurity.StartTls });
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(SockDaysOfWeek).ToString()).ToLowerInvariant())
|
||||
{
|
||||
|
||||
@@ -568,6 +563,20 @@ namespace Sockeye.Api.Controllers
|
||||
ReturnList.Add(new NameIdItem() { Name = LT["DaySunday"], Id = (long)SockDaysOfWeek.Sunday });
|
||||
|
||||
}
|
||||
else if (keyNameInLowerCase == StringUtil.TrimTypeName(typeof(TrialRequestStatus).ToString()).ToLowerInvariant())
|
||||
{
|
||||
TranslationKeysToFetch.Add("TrialRequestStatusNew");
|
||||
TranslationKeysToFetch.Add("TrialRequestStatusApproved");
|
||||
TranslationKeysToFetch.Add("TrialRequestStatusRejected");
|
||||
var LT = await TranslationBiz.GetSubsetStaticAsync(TranslationKeysToFetch, translationId);
|
||||
ReturnList.Add(new NameIdItem() { Name = LT["TrialRequestStatusNew"], Id = (long)TrialRequestStatus.New });
|
||||
ReturnList.Add(new NameIdItem() { Name = LT["TrialRequestStatusApproved"], Id = (long)TrialRequestStatus.Approved });
|
||||
ReturnList.Add(new NameIdItem() { Name = LT["TrialRequestStatusRejected"], Id = (long)TrialRequestStatus.Rejected });
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//#################################################################################################################
|
||||
//################### NEW HERE DO NOT FORGET TO ADD TO LISTS AVAILABLE ABOVE AS WELL ##############################
|
||||
//#################################################################################################################
|
||||
|
||||
Reference in New Issue
Block a user