Klassen vom MainWindow getrennt
+ Klassen getrennt + Business Schicht abgeändert
This commit is contained in:
16
bibtalk/bib-talk/Business/Message.cs
Normal file
16
bibtalk/bib-talk/Business/Message.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bib_talk.Business
|
||||
{
|
||||
public class Message
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Text { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
15
bibtalk/bib-talk/Business/MessageDto.cs
Normal file
15
bibtalk/bib-talk/Business/MessageDto.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bib_talk.Business
|
||||
{
|
||||
public class MessageDto
|
||||
{
|
||||
public string Username { get; set; }
|
||||
public string Message { get; set; }
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
}
|
19
bibtalk/bib-talk/Business/User.cs
Normal file
19
bibtalk/bib-talk/Business/User.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace bib_talk.Business
|
||||
{
|
||||
public class User
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Username { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string Email { get; set; }
|
||||
public string Birthday { get; set; }
|
||||
public string IsOnline { get; set; }
|
||||
public string ProfileImagePath { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user