forked from yuezhongxin/MessageManager
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIMessageService.cs
More file actions
47 lines (38 loc) · 1.63 KB
/
Copy pathIMessageService.cs
File metadata and controls
47 lines (38 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/**
* author:xishuai
* address:https://www.github.com/yuezhongxin/MessageManager
**/
using MessageManager.Application.DTO;
using MessageManager.Infrastructure;
using System.Collections.Generic;
using System.ServiceModel;
namespace MessageManager.Application
{
/// <summary>
/// Message管理应用层服务契约
/// </summary>
[ServiceContract(Name = "MessageService")]
public interface IMessageService
{
#region Methods
[OperationContract]
OperationResponse SendMessage(string title, string content, string senderLoginName, string receiverDisplayName);
[OperationContract]
OperationResponse ReplyMessage(string messageId, string title, string content, string replierLoginName);
[OperationContract]
OperationResponse ForwardMessage(string messageId, string title, string content, string senderLoginName, string receiverDisplayName);
[OperationContract]
OperationResponse<ICollection<MessageDTO>> GetUnreadMessageList(string readerLoginName);
[OperationContract]
OperationResponse<int> GetUnreadMessageCount(string readerLoginName);
[OperationContract]
OperationResponse<ICollection<MessageDTO>> ReadInbox(string readerLoginName);
[OperationContract]
OperationResponse<ICollection<MessageDTO>> ReadOutbox(string readerLoginName);
[OperationContract]
OperationResponse<MessageDTO> ReadMessageSender(string messageId, string readerLoginName);
[OperationContract]
OperationResponse<MessageDTO> ReadMessageRecipient(string messageId, string readerLoginName);
#endregion
}
}