-
Notifications
You must be signed in to change notification settings - Fork 3
unify UpdateDetail and PGCrudResult #623
Copy link
Copy link
Open
Description
public struct UpdateResult
{
public string operation { get; init; }
public string updatetype { get; init; }
public string otherinfo { get; init; }
public string message { get; init; }
public bool success { get; init; }
public int? recordsmodified { get; init; }
public int? updated { get; init; }
public int? created { get; init; }
public int? deleted { get; init; }
public int? objectcompared { get; init; }
public int? objectchanged { get; init; }
public int? objectimagechanged { get; init; }
public dynamic? objectchanges { get; init; }
public string? objectchangestring { get; init; }
//Push Infos
public ICollection<string>? pushchannels { get; init; }
public IDictionary<string, NotifierResponse>? pushed { get; init; }
public int? error { get; init; }
public string id { get; init; }
public string exception { get; init; }
public string stacktrace { get; init; }
public string source { get; init; }
}
public struct UpdateDetail
{
//Crud
public int? updated { get; init; }
public int? created { get; init; }
public int? deleted { get; init; }
//Error
public int? error { get; init; }
//Comparision
public int? comparedobjects { get; init; }
public int? objectchanged { get; init; }
public int? objectimagechanged { get; init; }
public JToken? changes { get; init; }
//Push Infos
public ICollection<string>? pushchannels { get; init; }
public IDictionary<string, NotifierResponse>? pushed { get; set; }
public string? exception { get; set; }
}
public struct PGCRUDResult
{
public string id { get; init; }
public string? odhtype { get; init; }
public string operation { get; init; }
public int? updated { get; init; }
public int? created { get; init; }
public int? deleted { get; init; }
public int? error { get; init; }
public string? errorreason { get; init; }
public bool? compareobject { get; init; }
public int? objectchanged { get; init; }
public int? objectimagechanged { get; init; }
public ICollection<string>? pushchannels { get; init; }
public JToken? changes { get; init; }
public IDictionary<string, NotifierResponse>? pushed { get; set; }
public static PGCRUDResult Default => new PGCRUDResult
{
created = 0,
updated = 0,
deleted = 0,
error = 0,
compareobject = false,
objectchanged = 0,
objectimagechanged = 0,
pushchannels = new List<string>(),
pushed = new Dictionary<string, NotifierResponse>()
};
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels