Added CellularAuthInfo member variable to CellularProfile class 45/140545/1 accepted/tizen_4.0_unified accepted/tizen_unified tizen_4.0 accepted/tizen/4.0/unified/20170816.014427 accepted/tizen/4.0/unified/20170828.223442 accepted/tizen/unified/20170726.012951 submit/tizen/20170725.100007 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100003 submit/tizen_4.0_unified/20170814.115522
authorchleun.moon <chleun.moon@samsung.com>
Tue, 25 Jul 2017 09:46:07 +0000 (18:46 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Tue, 25 Jul 2017 09:46:13 +0000 (18:46 +0900)
Change-Id: I2879ca13180cee3ab1bf561c273a572a108dab67
Signed-off-by: cheoleun <chleun.moon@samsung.com>
Tizen.Network.Connection/Tizen.Network.Connection.csproj
Tizen.Network.Connection/Tizen.Network.Connection/CellularProfile.cs
packaging/csapi-network-connection.spec

index 2ab4365..e7d758b 100644 (file)
@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 
   <PropertyGroup>
-    <Version>1.0.19</Version>
+    <Version>1.0.20</Version>
     <Authors>Samsung Electronics</Authors>
     <Copyright>© Samsung Electronics Co., Ltd All Rights Reserved</Copyright>
     <Description>Provides the Connection APIs for Tizen .NET</Description>
index 325bc45..86658a2 100755 (executable)
@@ -32,6 +32,8 @@ namespace Tizen.Network.Connection
         {
         }
 
+        private CellularAuthInformation _cellularAuthInfo = null;
+
         ~CellularProfile()
         {
         }
@@ -272,11 +274,12 @@ namespace Tizen.Network.Connection
                     return null;
                 }
 
-                CellularAuthInformation AuthInfo = new CellularAuthInformation();
-                AuthInfo.AuthType = (CellularAuthType)type;
-                AuthInfo.UserName = name;
-                AuthInfo.Password = password;
-                return AuthInfo;
+                if (_cellularAuthInfo == null)
+                    _cellularAuthInfo = new CellularAuthInformation();
+                _cellularAuthInfo.AuthType = (CellularAuthType)type;
+                _cellularAuthInfo.UserName = name;
+                _cellularAuthInfo.Password = password;
+                return _cellularAuthInfo;
             }
 
             set
@@ -284,10 +287,10 @@ namespace Tizen.Network.Connection
                 CheckDisposed();
                 if (value != null)
                 {
-                    CellularAuthInformation AuthInfo = value;
-                    int type = (int)AuthInfo.AuthType;
-                    string name = AuthInfo.UserName;
-                    string password = AuthInfo.Password;
+                    _cellularAuthInfo = value;
+                    int type = (int)_cellularAuthInfo.AuthType;
+                    string name = _cellularAuthInfo.UserName;
+                    string password = _cellularAuthInfo.Password;
                     int ret = Interop.ConnectionCellularProfile.SetAuthInfo(ProfileHandle, type, name, password);
                     if ((ConnectionError)ret != ConnectionError.None)
                     {
index f107151..cf77b11 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       csapi-network-connection
 Summary:    Tizen Connection API for C#
-Version:    1.0.19
+Version:    1.0.20
 Release:    1
 Group:      Development/Libraries
 License:    Apache-2.0