From 1133b83d0e37e7f46b911748a0ecb5c9ed965a33 Mon Sep 17 00:00:00 2001 From: Kyeonghun Lee Date: Thu, 2 Feb 2017 17:52:22 +0900 Subject: [PATCH] change type of 'From' property Change-Id: Icc558cc00422fc17d381665dc73c96601b6dee05 Signed-off-by: Kyeonghun Lee --- Tizen.Messaging/Tizen.Messaging.Messages/Message.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs b/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs index c2a13bd..e50c2b3 100755 --- a/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs +++ b/Tizen.Messaging/Tizen.Messaging.Messages/Message.cs @@ -28,7 +28,7 @@ namespace Tizen.Messaging.Messages protected IntPtr _messageHandle = IntPtr.Zero; private bool disposed = false; - private MessagesAddress _from = null; + private ICollection _from = new Collection(); protected ICollection _to = new Collection(); protected ICollection _cc = new Collection(); protected ICollection _bcc = new Collection(); @@ -134,6 +134,7 @@ namespace Tizen.Messaging.Messages var To = new Collection(); var Cc = new Collection(); var Bcc = new Collection(); + var From = new Collection(); for (int i = 0; i < count; i++) { @@ -157,7 +158,7 @@ namespace Tizen.Messaging.Messages Bcc.Add(addressItem); break; default: - _from = addressItem; + From.Add(addressItem); break; } } @@ -165,6 +166,7 @@ namespace Tizen.Messaging.Messages _to = To; _cc = Cc; _bcc = Bcc; + _from = From; } public int Id @@ -293,11 +295,11 @@ namespace Tizen.Messaging.Messages } } - public MessagesAddress From + public IReadOnlyCollection From { get { - return _from; + return _from as IReadOnlyCollection; } } } -- 2.7.4