supports proker, list<proker>, and list<string>
This commit is contained in:
parent
e640e52f19
commit
ebaaab67dc
@ -16,6 +16,8 @@ internal partial record SafeUser(string Username, string AgentID, byte Level, bo
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
internal partial record SimpleApiResponse(int Status, string Message);
|
internal partial record SimpleApiResponse(int Status, string Message);
|
||||||
|
internal partial record Proker(string ProkerID, string AgentID, byte Kegiatan, string Sasaran, byte? StartDay,
|
||||||
|
byte StartMonth, short Year, byte TimeTarget, bool IsInMonth, string EntityTarget, string Indicators, string Actions);
|
||||||
internal partial record ProkerJournal(string ProkerID, string OwnerID, byte Kegiatan, string Sasaran, byte? StartDay,
|
internal partial record ProkerJournal(string ProkerID, string OwnerID, byte Kegiatan, string Sasaran, byte? StartDay,
|
||||||
byte StartMonth, short Year, byte TimeTarget, bool IsInMonth, string EntityTarget, string Indicators, string Actions,
|
byte StartMonth, short Year, byte TimeTarget, bool IsInMonth, string EntityTarget, string Indicators, string Actions,
|
||||||
string SubmitterID, string Notes, byte Status, string? Document, DateTime TimeStamp);
|
string SubmitterID, string Notes, byte Status, string? Document, DateTime TimeStamp);
|
||||||
@ -27,6 +29,7 @@ internal partial record User(string Username, string AgentID, string Password, b
|
|||||||
[JsonSerializable(typeof(JsonElement[]))]
|
[JsonSerializable(typeof(JsonElement[]))]
|
||||||
[JsonSerializable(typeof(LoginUser))]
|
[JsonSerializable(typeof(LoginUser))]
|
||||||
[JsonSerializable(typeof(PasswdUser))]
|
[JsonSerializable(typeof(PasswdUser))]
|
||||||
|
[JsonSerializable(typeof(Proker))]
|
||||||
[JsonSerializable(typeof(ProkerJournal))]
|
[JsonSerializable(typeof(ProkerJournal))]
|
||||||
[JsonSerializable(typeof(SafeUser))]
|
[JsonSerializable(typeof(SafeUser))]
|
||||||
[JsonSerializable(typeof(SimpleApiResponse))]
|
[JsonSerializable(typeof(SimpleApiResponse))]
|
||||||
@ -37,8 +40,10 @@ internal partial record User(string Username, string AgentID, string Password, b
|
|||||||
//////////-------------LISTS--------------//////////
|
//////////-------------LISTS--------------//////////
|
||||||
[JsonSerializable(typeof(List<Agent>))]
|
[JsonSerializable(typeof(List<Agent>))]
|
||||||
[JsonSerializable(typeof(List<Deployment>))]
|
[JsonSerializable(typeof(List<Deployment>))]
|
||||||
|
[JsonSerializable(typeof(List<Proker>))]
|
||||||
[JsonSerializable(typeof(List<ProkerJournal>))]
|
[JsonSerializable(typeof(List<ProkerJournal>))]
|
||||||
[JsonSerializable(typeof(List<SafeUser>))]
|
[JsonSerializable(typeof(List<SafeUser>))]
|
||||||
|
[JsonSerializable(typeof(List<string>))]
|
||||||
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Default, PropertyNameCaseInsensitive = true, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
|
[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Default, PropertyNameCaseInsensitive = true, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase)]
|
||||||
internal partial class SGContext : JsonSerializerContext { }
|
internal partial class SGContext : JsonSerializerContext { }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user