/// Example Implementation
using SanteDB.Core.Services;
/// Other usings here
public class MyMailMessageService : SanteDB.Core.Services.IMailMessageService {
public String ServiceName => "My own IMailMessageService service";
/// <summary>
/// Fired when an mail message has been received.
/// </summary>
public event EventHandler<MailMessageEventArgs> Sent;
/// <summary>
/// Send the specified mailmessage according to its sending instructions
/// </summary>
public MailMessage Send(MailMessage mail){
throw new System.NotImplementedException();
}
/// <summary>
/// Get mailboxes for the current user
/// </summary>
public IQueryResultSet<Mailbox> GetMailboxes(Nullable<Guid> forUserKey){
throw new System.NotImplementedException();
}
/// <summary>
/// Get a specific mailbox
/// </summary>
public Mailbox GetMailbox(String mailboxName){
throw new System.NotImplementedException();
}
/// <summary>
/// Create a new mailbox for the specified user
/// </summary>
public Mailbox CreateMailbox(String name,Nullable<Guid> ownerKey){
throw new System.NotImplementedException();
}
/// <summary>
/// Get messages from the mailbox
/// </summary>
public IQueryResultSet<MailboxMailMessage> GetMessages(String mailboxName){
throw new System.NotImplementedException();
}
/// <summary>
/// Move to
/// </summary>
public MailboxMailMessage MoveMessage(Guid messageKey,String targetMailboxName,Boolean copy){
throw new System.NotImplementedException();
}
/// <summary>
/// Delete the specified message
/// </summary>
public MailboxMailMessage DeleteMessage(String fromMailboxName,Guid messageKey){
throw new System.NotImplementedException();
}
/// <summary>
/// Delete mailbox from current user account
/// </summary>
public Mailbox DeleteMailbox(String fromMailboxName,Nullable<Guid> ownerKey){
throw new System.NotImplementedException();
}
/// <summary>
/// Update the flag for the specified mail message instance
/// </summary>
public MailboxMailMessage UpdateStatusFlag(Guid mailMessageKey,MailStatusFlags statusFlag){
throw new System.NotImplementedException();
}
}