summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHongkuk, Son <hongkuk.son@samsung.com>2017-03-27 15:38:53 +0900
committerHongkuk, Son <hongkuk.son@samsung.com>2017-03-27 16:52:21 +0900
commit8a4ff855b42787e9473555eb605efba9bcbbf50d (patch)
tree3000a852ad82cba262e11d2bb9b7f66706f64568
parentd594a3a03f8ceb26461e530896ba16e3b12073e2 (diff)
downloadiotcon-8a4ff855b42787e9473555eb605efba9bcbbf50d.tar.gz
iotcon-8a4ff855b42787e9473555eb605efba9bcbbf50d.tar.bz2
iotcon-8a4ff855b42787e9473555eb605efba9bcbbf50d.zip
Fix SetAttributes() to do _attributes.Add() only
Signed-off-by: Hongkuk, Son <hongkuk.son@samsung.com> Change-Id: I2a1029f98eacd52ec939a5e83003a2e6dcfc99c7
-rwxr-xr-xTizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs b/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs
index baf628a..fd7012a 100755
--- a/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs
+++ b/Tizen.Network.IoTConnectivity/Tizen.Network.IoTConnectivity/Attributes.cs
@@ -509,7 +509,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- Add(key, value);
+ _attributes.Add(key, value);
break;
}
case Interop.IoTConnectivity.Common.DataType.Bool:
@@ -521,7 +521,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- Add(key, value);
+ _attributes.Add(key, value);
break;
}
case Interop.IoTConnectivity.Common.DataType.Double:
@@ -533,7 +533,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- Add(key, value);
+ _attributes.Add(key, value);
break;
}
case Interop.IoTConnectivity.Common.DataType.String:
@@ -545,7 +545,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- Add(key, value);
+ _attributes.Add(key, value);
break;
}
case Interop.IoTConnectivity.Common.DataType.ByteStr:
@@ -560,12 +560,12 @@ namespace Tizen.Network.IoTConnectivity
}
byte[] byteStr = new byte[byteStrSize];
Marshal.Copy(byteStrPtr, byteStr, 0, byteStrSize);
- Add(key, byteStr);
+ _attributes.Add(key, byteStr);
break;
}
case Interop.IoTConnectivity.Common.DataType.Null:
{
- Add(key, null);
+ _attributes.Add(key, null);
break;
}
case Interop.IoTConnectivity.Common.DataType.List:
@@ -577,7 +577,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- Add(key, List.GetList(listHandle));
+ _attributes.Add(key, List.GetList(listHandle));
break;
}
case Interop.IoTConnectivity.Common.DataType.Attributes:
@@ -589,7 +589,7 @@ namespace Tizen.Network.IoTConnectivity
Log.Error(IoTConnectivityErrorFactory.LogTag, "Failed to get attributes");
throw IoTConnectivityErrorFactory.GetException(ret);
}
- Add(key, new Attributes(attribsHandle));
+ _attributes.Add(key, new Attributes(attribsHandle));
break;
}
default: