[Email] Review messaging API cs files 30/147930/2
authorJeesun Kim <iamjs.kim@samsung.com>
Wed, 6 Sep 2017 05:38:08 +0000 (14:38 +0900)
committerjeesun kim <iamjs.kim@samsung.com>
Wed, 6 Sep 2017 05:38:48 +0000 (05:38 +0000)
Change-Id: If665973bc15871c68ff3b8f6afc629e763f73117

18 files changed:
src/Tizen.Messaging/Tizen.Messaging.Email/EmailAttachment.cs
src/Tizen.Messaging/Tizen.Messaging.Email/EmailEnumerations.cs
src/Tizen.Messaging/Tizen.Messaging.Email/EmailMessage.cs
src/Tizen.Messaging/Tizen.Messaging.Email/EmailRecipient.cs
src/Tizen.Messaging/Tizen.Messaging.Email/EmailSender.cs
src/Tizen.Messaging/Tizen.Messaging.Email/NamespaceDoc.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/CBMessage.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MessageReceivedEventArgs.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MessagesAddress.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MessagesAttachment.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MessagesEnumerations.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MessagesManager.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MessagesSearchFilter.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/MmsMessage.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/NamespaceDoc.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/PushMessage.cs
src/Tizen.Messaging/Tizen.Messaging.Messages/SmsMessage.cs

index 5f8028a..357e144 100644 (file)
 namespace Tizen.Messaging.Email
 {
     /// <summary>
-    /// Represents an email attachment
+    /// Represents an email attachment.
     /// </summary>
     public class EmailAttachment
     {
         /// <summary>
-        /// The absolute full path of the file to be attached
+        /// The absolute full path of the file to be attached.
         /// </summary>
         public string FilePath { get; set; }
         /// <summary>
-        /// The constructor
+        /// The constructor.
         /// </summary>
         public EmailAttachment()
         {
index fdeaa37..45fa335 100755 (executable)
 namespace Tizen.Messaging.Email
 {
     /// <summary>
-    /// Result of sending the email
+    /// Result of sending the email.
     /// </summary>
     public enum EmailSendResult
     {
         /// <summary>
-        /// Failed to send the message
+        /// Failed to send the message.
         /// </summary>
         Failure = -1,
 
         /// <summary>
-        /// email sent successfully
+        /// Email sent successfully.
         /// </summary>
         Success = 0
     }
index f7756c9..e4b9d9f 100644 (file)
@@ -21,7 +21,7 @@ using System.Collections.ObjectModel;
 namespace Tizen.Messaging.Email
 {
     /// <summary>
-    /// The class contains Messaging API to support sending email messages.
+    /// This class contains the Messaging API to support sending email messages.
     /// </summary>
     public class EmailMessage : IDisposable
     {
@@ -35,7 +35,7 @@ namespace Tizen.Messaging.Email
         private ICollection<EmailRecipient> _bcc = new Collection<EmailRecipient>();
 
         /// <summary>
-        /// The constructor
+        /// The constructor.
         /// </summary>
         public EmailMessage()
         {
@@ -48,7 +48,7 @@ namespace Tizen.Messaging.Email
         }
 
         /// <summary>
-        /// Subject of the email message
+        /// The subject of the email message.
         /// </summary>
         public string Subject
         {
@@ -70,7 +70,7 @@ namespace Tizen.Messaging.Email
         }
 
         /// <summary>
-        /// Body of the email message
+        /// The body of the email message.
         /// </summary>
         public string Body
         {
@@ -91,7 +91,7 @@ namespace Tizen.Messaging.Email
         }
 
         /// <summary>
-        /// List of file attachments
+        /// The list of file attachments.
         /// </summary>
         public IList<EmailAttachment> Attachments
         {
@@ -102,10 +102,10 @@ namespace Tizen.Messaging.Email
         }
 
         /// <summary>
-        /// Collection of normal email recipients
+        /// The collection of normal email recipients.
         /// </summary>
         /// <remarks>
-        /// Email address should be in standard format (as described in Internet standards RFC 5321 and RFC 5322).
+        /// The email address should be in the standard format (as described in the Internet standards RFC 5321 and RFC 5322).
         /// </remarks>
         public ICollection<EmailRecipient> To
         {
@@ -116,10 +116,10 @@ namespace Tizen.Messaging.Email
         }
 
         /// <summary>
-        /// Collection of CC(carbon copy) email recipients
+        /// The collection of CC (carbon copy) email recipients.
         /// </summary>
         /// <remarks>
-        /// Email address should be in standard format (as described in Internet standards RFC 5321 and RFC 5322).
+        /// The email address should be in the standard format (as described in the Internet standards RFC 5321 and RFC 5322).
         /// </remarks>
         public ICollection<EmailRecipient> Cc
         {
@@ -130,10 +130,10 @@ namespace Tizen.Messaging.Email
         }
 
         /// <summary>
-        /// Collection of BCC(blind carbon copy) email recipients
+        /// The collection of BCC (blind carbon copy) email recipients.
         /// </summary>
         /// <remarks>
-        /// Email address should be in standard format (as described in Internet standards RFC 5321 and RFC 5322).
+        /// The email address should be in the standard format (as described in the Internet standards RFC 5321 and RFC 5322).
         /// </remarks>
         public ICollection<EmailRecipient> Bcc
         {
index 3c1fc24..99d5de3 100644 (file)
 namespace Tizen.Messaging.Email
 {
     /// <summary>
-    /// The class represents recipients of an email
+    /// This class represents recipients of an email.
     /// </summary>
     public class EmailRecipient
     {
         /// <summary>
-        /// The email address of the recipient
+        /// The email address of the recipient.
         /// </summary>
         public string Address { get; set; }
         /// <summary>
-        /// The constructor
+        /// The constructor.
         /// </summary>
         public EmailRecipient()
         {
index 57220ed..5c75996 100644 (file)
@@ -20,15 +20,15 @@ using System.Threading.Tasks;
 namespace Tizen.Messaging.Email
 {
     /// <summary>
-    /// The class to send email messages.
+    /// This class is used to send email messages.
     /// </summary>
     public static class EmailSender
     {
         /// <summary>
         /// Sends the email message.
         /// </summary>
-        /// <param name="email">The email message</param>
-        /// <returns> Failure if email sending failed otherwise Success</returns>
+        /// <param name="email">The email message.</param>
+        /// <returns> Failure if the email sending activity failed, otherwise Success.</returns>
         public static async Task<EmailSendResult> SendAsync(EmailMessage email)
         {
             var task = new TaskCompletionSource<EmailSendResult>();
index 1c51cb5..8afebcb 100755 (executable)
 
 
 /// <summary>
-/// The <b>Tizen.Messaging.Email</b> namespace contains classes providing functionality to send emails.
+/// The <b>Tizen.Messaging.Email</b> namespace contains classes providing the functionality to send emails.
 /// </summary>
 /// <remarks>
-/// The <b>Tizen.Messaging.Email</b> namespace contains classes providing functionality to send emails.
+/// The <b>Tizen.Messaging.Email</b> namespace contains classes providing the functionality to send emails.
 /// </remarks>
 namespace Tizen.Messaging.Email
 {
index 949a1c8..88d1f38 100755 (executable)
@@ -19,7 +19,7 @@ using System;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to represent cell broadcast messages.
+    /// This class represents the cell broadcast messages.
     /// </summary>
     public class CBMessage : Message
     {
index e0e27f2..38f0f5e 100755 (executable)
@@ -21,7 +21,7 @@ using System.Collections.ObjectModel;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to represent all messages.
+    /// This class represents all the messages.
     /// </summary>
     public abstract class Message : IDisposable
     {
@@ -175,10 +175,10 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The message ID
+        /// The message ID.
         /// </summary>
         /// <remarks>
-        /// After creating Message object, default value of this property is 0. After sending, this value is changed.
+        /// After creating the Message object, the default value of this property is 0. After sending, this value is changed.
         /// </remarks>
         public int Id
         {
@@ -196,7 +196,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The destination port of the message
+        /// The destination port of the message.
         /// </summary>
         public int Port
         {
@@ -214,7 +214,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The message box type
+        /// The message box type.
         /// </summary>
         public MessageBoxType BoxType
         {
@@ -241,7 +241,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The text of the message
+        /// The text of the message.
         /// </summary>
         public string Text
         {
@@ -268,7 +268,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The time of the message
+        /// The time of the message.
         /// </summary>
         public DateTime Time
         {
@@ -295,7 +295,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The SIM slot index of the message
+        /// The SIM slot index of the message.
         /// </summary>
         public SimSlotId SimId
         {
@@ -322,7 +322,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// Indicates sender of the message
+        /// Indicates the sender of the message.
         /// </summary>
         public IReadOnlyCollection<MessagesAddress> From
         {
index cd9f7ee..f98bc6f 100755 (executable)
@@ -19,7 +19,7 @@ using System;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// An extended EventArgs class which contains a received message.
+    /// An extended EventArgs class, which contains a received message.
     /// </summary>
     public class MessageReceivedEventArgs : EventArgs
     {
@@ -31,7 +31,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The received message
+        /// The received message.
         /// </summary>
         public Message ReceivedMessage
         {
index 19143fb..3e13494 100755 (executable)
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to manage informations of message address.
+    /// This class is used to manage the information of the message address.
     /// </summary>
     public class MessagesAddress
     {
         internal RecipientType Type;
         /// <summary>
-        /// The address of the sender/recipient
+        /// The address of the sender/recipient.
         /// </summary>
         public string Number { get; }
 
         /// <summary>
         /// Creates a message address.
         /// </summary>
-        /// <param name="number">The recipient's address to receive a message</param>
+        /// <param name="number">The recipient's address to receive a message.</param>
         public MessagesAddress(string number)
         {
             Number = number;
index 6096278..c37428e 100755 (executable)
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to manage informations of message attachment.
+    /// This class is used to manage the information of the message attachment.
     /// </summary>
     public class MessagesAttachment
     {
         /// <summary>
-        /// The media type of attachment
+        /// The media type of the attachment.
         /// </summary>
         public MediaType Type { get; }
 
         /// <summary>
-        /// The file path of attachment
+        /// The file path of the attachment.
         /// </summary>
         public string FilePath { get; }
 
         /// <summary>
         /// Creates an attachment.
         /// </summary>
-        /// <param name="type">The attachment's type</param>
-        /// <param name="filePath">The file path to attach</param>
+        /// <param name="type">The attachment's type.</param>
+        /// <param name="filePath">The file path to attach.</param>
         public MessagesAttachment(MediaType type, string filePath)
         {
             Type = type;
index dd43eb0..2fa1626 100755 (executable)
@@ -22,11 +22,11 @@ namespace Tizen.Messaging.Messages
     public enum SentResult
     {
         /// <summary>
-        /// Message sending failed
+        /// Message sending failed.
         /// </summary>
         Failed = -1,
         /// <summary>
-        /// Message sending succeeded
+        /// Message sending succeeded.
         /// </summary>
         Success = 0
     }
@@ -37,23 +37,23 @@ namespace Tizen.Messaging.Messages
     public enum MessageType
     {
         /// <summary>
-        /// Unknown type
+        /// The unknown type.
         /// </summary>
         Unknown = 0,
         /// <summary>
-        /// SMS type
+        /// The SMS type.
         /// </summary>
         Sms = 1,
         /// <summary>
-        /// MMS type
+        /// The MMS type.
         /// </summary>
         Mms = 2,
         /// <summary>
-        /// CB(Cell Broadcast) type
+        /// The CB(Cell Broadcast) type.
         /// </summary>
         CellBroadcast = Sms | 1 << 4,
         /// <summary>
-        /// WAP Push type
+        /// The WAP Push type.
         /// </summary>
         Push = Sms | 10 << 4
     }
@@ -64,88 +64,88 @@ namespace Tizen.Messaging.Messages
     public enum MessageBoxType
     {
         /// <summary>
-        /// All message box type
+        /// All message box type.
         /// </summary>
         All = 0,
         /// <summary>
-        /// Inbox type
+        /// The Inbox type.
         /// </summary>
         Inbox = 1,
         /// <summary>
-        /// Outbox type
+        /// The Outbox type.
         /// </summary>
         Outbox = 2,
         /// <summary>
-        /// Sentbox type
+        /// The Sentbox type.
         /// </summary>
         Sentbox = 3,
         /// <summary>
-        /// Draft type
+        /// The Draft type.
         /// </summary>
         Draft = 4
     }
 
     /// <summary>
-    /// Enumeration for the SIM slot index of a message
+    /// Enumeration for the SIM slot index of a message.
     /// </summary>
     public enum SimSlotId
     {
         /// <summary>
-        /// Unknown SIM Slot
+        /// Unknown SIM Slot.
         /// </summary>
         Unknown = 0,
         /// <summary>
-        /// SIM Slot 1
+        /// SIM Slot 1.
         /// </summary>
         Sim1 = 1,
         /// <summary>
-        /// SIM Slot 2
+        /// SIM Slot 2.
         /// </summary>
         Sim2 = 2
     }
 
     /// <summary>
-    /// Enumeration for the recipient type of a message
+    /// Enumeration for the recipient type of a message.
     /// </summary>
     internal enum RecipientType
     {
         /// <summary>
-        /// Unknown
+        /// Unknown.
         /// </summary>
         Unknown = 0,
         /// <summary>
-        /// 'To' recipient
+        /// 'To' recipient.
         /// </summary>
         To = 1,
         /// <summary>
-        /// 'Cc' (carbon copy) recipient
+        /// 'Cc' (carbon copy) recipient.
         /// </summary>
         Cc = 2,
         /// <summary>
-        /// 'Bcc' (blind carbon copy) recipient
+        /// 'Bcc' (blind carbon copy) recipient.
         /// </summary>
         Bcc = 3
     }
 
     /// <summary>
-    /// Enumeration for the attachment tyoe for MMS messaging.
+    /// Enumeration for the attachment type for the MMS messaging.
     /// </summary>
     public enum MediaType
     {
         /// <summary>
-        /// Unknown
+        /// Unknown.
         /// </summary>
         Unknown = 0,
         /// <summary>
-        /// The image
+        /// The image.
         /// </summary>
         Image = 1,
         /// <summary>
-        /// The audio
+        /// The audio.
         /// </summary>
         Audio = 2,
         /// <summary>
-        /// The video
+        /// The video.
         /// </summary>
         Video = 3
     }
index 6b23ffa..e9571bd 100755 (executable)
@@ -21,7 +21,7 @@ using System.Threading.Tasks;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class for message management. It allows applications to use message service.
+    /// This class is used for the message management. It allows applications to use the message service.
     /// </summary>
     /// <privilege>http://tizen.org/privilege/message.read</privilege>
     public static class MessagesManager
@@ -30,13 +30,13 @@ namespace Tizen.Messaging.Messages
         /// Sends a message.
         /// </summary>
         /// <privilege>http://tizen.org/privilege/message.write</privilege>
-        /// <param name="message">The message to be sent</param>
-        /// <param name="saveToSentbox">The boolean variable to indicate sent message should be saved in sentbox or not</param>
-        /// <returns>A task contains the result of message sending</returns>
-        /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation</exception>
-        /// <exception cref="NotSupportedException">Thrown when message service is not supported</exception>
-        /// <exception cref="ArgumentException">Thrown when input coordinates are invalid</exception>
-        /// <exception cref="UnauthorizedAccessException">Thrown when application does not have proper privileges</exception>
+        /// <param name="message">The message to be sent.</param>
+        /// <param name="saveToSentbox">The boolean variable used to indicate whether the sent message should be saved in the sentbox or not.</param>
+        /// <returns>A task containing the result of message sending.</returns>
+        /// <exception cref="InvalidOperationException">Thrown when the method failed due to an invalid operation.</exception>
+        /// <exception cref="NotSupportedException">Thrown when the message service is not supported.</exception>
+        /// <exception cref="ArgumentException">Thrown when input coordinates are invalid.</exception>
+        /// <exception cref="UnauthorizedAccessException">Thrown when an application does not have proper privileges.</exception>
         public static Task<SentResult> SendMessageAsync(Message message, bool saveToSentbox)
         {
             return MessagesManagerImpl.Instance.SendMessageAsync(message, saveToSentbox);
@@ -46,20 +46,20 @@ namespace Tizen.Messaging.Messages
         /// Searches for messages.
         /// </summary>
         /// <privilege>http://tizen.org/privilege/message.read</privilege>
-        /// <param name="filter">The search filter for searching messages</param>
-        /// <returns>A task contains the messages which fit with search filter</returns>
-        /// <exception cref="InvalidOperationException">Thrown when method failed due to invalid operation</exception>
-        /// <exception cref="NotSupportedException">Thrown when message service is not supported</exception>
-        /// <exception cref="ArgumentException">Thrown when input coordinates are invalid</exception>
-        /// <exception cref="OutOfMemoryException">Thrown when failed due to out of memory</exception>
-        /// <exception cref="UnauthorizedAccessException">Thrown when application does not have proper privileges</exception>
+        /// <param name="filter">The search filter for searching messages.</param>
+        /// <returns>A task containing the messages, which match the search filter.</returns>
+        /// <exception cref="InvalidOperationException">Thrown when the method failed due to an invalid operation.</exception>
+        /// <exception cref="NotSupportedException">Thrown when the message service is not supported.</exception>
+        /// <exception cref="ArgumentException">Thrown when input coordinates are invalid.</exception>
+        /// <exception cref="OutOfMemoryException">Thrown when failed due to out of memory.</exception>
+        /// <exception cref="UnauthorizedAccessException">Thrown when an application does not have proper privileges.</exception>
         public static Task<IEnumerable<Message>> SearchMessageAsync(MessagesSearchFilter filter)
         {
             return MessagesManagerImpl.Instance.SearchMessageAsync(filter);
         }
 
         /// <summary>
-        /// (event) MessageReceived is raised when receiving a message.
+        /// The MessageReceived event that is raised when receiving a message.
         /// </summary>
         /// <privilege>http://tizen.org/privilege/message.read</privilege>
         static public event EventHandler<MessageReceivedEventArgs> MessageReceived
index 6561463..0d8c80b 100755 (executable)
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to represent message search filters.
+    /// This class represents message search filters.
     /// </summary>
     public class MessagesSearchFilter
     {
         /// <summary>
-        /// Create a search filter for searching messages.
+        /// Creates a search filter for searching messages.
         /// </summary>
         public MessagesSearchFilter()
         {
         }
 
         /// <summary>
-        /// The message box type
+        /// The message box type.
         /// </summary>
         public MessageBoxType MessageBoxType { get; set; }
         /// <summary>
-        /// The message type
+        /// The message type.
         /// </summary>
         public MessageType MessageType { get; set; }
         /// <summary>
-        /// The keyword to search in the text and subject
+        /// The keyword to search in the text and the subject.
         /// </summary>
         public string TextKeyword { get; set; }
         /// <summary>
-        /// The recipient address
+        /// The recipient address.
         /// </summary>
         public string AddressKeyword { get; set; }
     }
index f73310a..88a01ca 100755 (executable)
@@ -20,7 +20,7 @@ using System.Collections.Generic;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to represent multimedia messages.
+    /// This class represents multimedia messages.
     /// </summary>
     public class MmsMessage : Message
     {
@@ -39,7 +39,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The subject of the multimedia message
+        /// The subject of the multimedia message.
         /// </summary>
         public string Subject
         {
@@ -66,7 +66,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// Collection of normal message recipients
+        /// The collection of normal message recipients.
         /// </summary>
         public ICollection<MessagesAddress> To
         {
@@ -77,7 +77,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// Collection of CC(carbon copy) message recipients
+        /// The collection of CC (carbon copy) message recipients.
         /// </summary>
         public ICollection<MessagesAddress> Cc
         {
@@ -88,7 +88,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// Collection of BCC(blind carbon copy) message recipients
+        /// The collection of BCC (blind carbon copy) message recipients.
         /// </summary>
         public ICollection<MessagesAddress> Bcc
         {
@@ -99,7 +99,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// The list of attachment files
+        /// The list of attachment files.
         /// </summary>
         public IList<MessagesAttachment> Attachments
         {
index 45d5a8e..79377ed 100755 (executable)
  */
 
 /// <summary>
-/// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing functionality to send, receive and search for messages.
+/// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing the functionality to send, receive, and search messages.
 /// </summary>
 /// <remarks>
-/// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing functionality to send, receive and search for messages.
+/// The <b>Tizen.Messaging.Messages</b> namespace contains classes providing the functionality to send, receive, and search messages.
 /// </remarks>
 namespace Tizen.Messaging.Messages
 {
index 667e7ff..d14f3c1 100755 (executable)
@@ -19,7 +19,7 @@ using System;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to represent WAP push messages.
+    /// This class represents the WAP push messages.
     /// </summary>
     public class PushMessage : Message
     {
index 62ffd1e..456962c 100755 (executable)
@@ -20,7 +20,7 @@ using System.Collections.Generic;
 namespace Tizen.Messaging.Messages
 {
     /// <summary>
-    /// A class to represent short text messages.
+    /// This class represents short text messages.
     /// </summary>
     public class SmsMessage : Message
     {
@@ -36,7 +36,7 @@ namespace Tizen.Messaging.Messages
         }
 
         /// <summary>
-        /// Collection of normal message recipients
+        /// The collection of normal message recipients.
         /// </summary>
         public ICollection<MessagesAddress> To
         {