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