mirror of
https://github.com/C9Glax/tranga.git
synced 2025-07-04 09:54:16 +02:00
ToString overrides
This commit is contained in:
@ -10,8 +10,5 @@ public class MangaTag(string tag)
|
||||
[Required]
|
||||
public string Tag { get; init; } = tag;
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"{Tag}";
|
||||
}
|
||||
public override string ToString() => Tag;
|
||||
}
|
@ -45,7 +45,7 @@ public class Notification : Identifiable
|
||||
this.IsSent = isSent;
|
||||
}
|
||||
|
||||
public override string ToString() => $"{base.ToString()} {Urgency} {Title}";
|
||||
public override string ToString() => $"{base.ToString()} {Urgency} {Title} {Message}";
|
||||
}
|
||||
|
||||
public enum NotificationUrgency : byte
|
||||
|
@ -79,4 +79,6 @@ public class NotificationConnector(string name, string url, Dictionary<string, s
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString() => $"{GetType().Name} {Name}";
|
||||
}
|
@ -35,4 +35,6 @@ public abstract class TrangaBaseContext<T> : DbContext where T : DbContext
|
||||
return (false, e.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString() => $"{GetType().Name} {typeof(T).Name}";
|
||||
}
|
Reference in New Issue
Block a user