forked from yuezhongxin/MessageManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b11aaa
commit 533f41a
Showing
8 changed files
with
143 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/** | ||
* author:xishuai | ||
* address:https://www.github.com/yuezhongxin/MessageManager | ||
**/ | ||
|
||
using MessageManager.Domain.ValueObject; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
|
||
namespace MessageManager.Domain.Entity | ||
{ | ||
public class Inbox : MessageBox | ||
{ | ||
public Inbox(IContact recipient) | ||
: base(recipient) | ||
{ | ||
this.Messages = new List<Message>() { new Message("title", "title", new Sender("sender"), new Recipient("recipient")) }; | ||
} | ||
|
||
public override Message GetMessage(string id) | ||
{ | ||
//Message message = this.Messages.First(m => m.ID == id); | ||
Message message = this.Messages.First(); | ||
if (message.State == MessageState.NoRead) | ||
{ | ||
message.State = MessageState.Read; | ||
} | ||
return message; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* author:xishuai | ||
* address:https://www.github.com/yuezhongxin/MessageManager | ||
**/ | ||
|
||
using MessageManager.Domain.ValueObject; | ||
using System.Collections.Generic; | ||
|
||
namespace MessageManager.Domain.Entity | ||
{ | ||
public class Outbox : MessageBox | ||
{ | ||
public Outbox(IContact sender) | ||
: base(sender) | ||
{ | ||
this.Messages = new List<Message>() { new Message("title", "title", new Sender("sender"), new Recipient("recipient")) }; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.