feat: include if report is ml
This commit is contained in:
parent
e0ba98853f
commit
ba5214b4de
|
@ -134,6 +134,7 @@ namespace NoSoliciting {
|
|||
ChatTypeExt.FromDalamud(type),
|
||||
sender,
|
||||
message,
|
||||
true,
|
||||
reason
|
||||
));
|
||||
|
||||
|
@ -171,6 +172,7 @@ namespace NoSoliciting {
|
|||
ChatTypeExt.FromDalamud(type),
|
||||
sender,
|
||||
message,
|
||||
false,
|
||||
reason
|
||||
));
|
||||
|
||||
|
@ -234,6 +236,7 @@ namespace NoSoliciting {
|
|||
ChatType.None,
|
||||
listing.Name(),
|
||||
listing.Description(),
|
||||
true,
|
||||
reason
|
||||
));
|
||||
|
||||
|
@ -313,6 +316,7 @@ namespace NoSoliciting {
|
|||
ChatType.None,
|
||||
listing.Name(),
|
||||
listing.Description(),
|
||||
false,
|
||||
reason
|
||||
));
|
||||
|
||||
|
|
|
@ -17,23 +17,26 @@ namespace NoSoliciting {
|
|||
public ChatType ChatType { get; }
|
||||
public SeString Sender { get; }
|
||||
public SeString Content { get; }
|
||||
public bool Ml { get; }
|
||||
public string? FilterReason { get; }
|
||||
|
||||
public Message(uint defsVersion, ChatType type, SeString sender, SeString content, string? reason) {
|
||||
public Message(uint defsVersion, ChatType type, SeString sender, SeString content, bool ml, string? reason) {
|
||||
this.Id = Guid.NewGuid();
|
||||
this.DefinitionsVersion = defsVersion;
|
||||
this.Timestamp = DateTime.Now;
|
||||
this.ChatType = type;
|
||||
this.Sender = sender;
|
||||
this.Content = content;
|
||||
this.Ml = ml;
|
||||
this.FilterReason = reason;
|
||||
}
|
||||
|
||||
public Message(uint defsVersion, ChatType type, string sender, string content, string? reason) : this(
|
||||
public Message(uint defsVersion, ChatType type, string sender, string content, bool ml, string? reason) : this(
|
||||
defsVersion,
|
||||
type,
|
||||
new SeString(new Payload[] {new TextPayload(sender)}),
|
||||
new SeString(new Payload[] {new TextPayload(content)}),
|
||||
ml,
|
||||
reason
|
||||
) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user