Notice.cs 408 B

1234567891011121314151617181920
  1. public class Notice
  2. {
  3. public string Title = string.Empty;
  4. public string Message = string.Empty;
  5. public DateTime LastUpdate;
  6. public Notice() { }
  7. public Notice(BinaryReader reader)
  8. {
  9. Title = reader.ReadString();
  10. Message = reader.ReadString();
  11. }
  12. public void Save(BinaryWriter writer)
  13. {
  14. writer.Write(Title);
  15. writer.Write(Message);
  16. }
  17. }