feat: include if report is ml

This commit is contained in:
Anna 2021-01-29 15:03:14 -05:00
parent e0ba98853f
commit ba5214b4de
Signed by: anna
GPG Key ID: 0B391D8F06FCD9E0
2 changed files with 9 additions and 2 deletions

View File

@ -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
));

View File

@ -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
) {
}