Release 4.0.0-preview1-00051
[platform/core/csapi/tizenfx.git] / src / Tizen.Network.Nfc / Tizen.Network.Nfc / NfcCallbackData.cs
1 /*
2  * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  * Licensed under the Apache License, Version 2.0 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 using System;
18 using System.Collections.Generic;
19
20 namespace Tizen.Network.Nfc
21 {
22     /// <summary>
23     /// Structure containing the information of Tag data.
24     /// </summary>
25     /// <since_tizen> 3 </since_tizen>
26     public class NfcTagInformation
27     {
28         private string _key;
29         private byte[] _informationValue;
30
31         internal NfcTagInformation(string key, byte[] informationValue)
32         {
33             _key = key;
34             _informationValue = informationValue;
35         }
36
37         /// <summary>
38         /// Key value.
39         /// </summary>
40         /// <since_tizen> 3 </since_tizen>
41         public string Key
42         {
43             get
44             {
45                 return _key;
46             }
47         }
48         /// <summary>
49         /// Information value.
50         /// </summary>
51         /// <since_tizen> 3 </since_tizen>
52         public byte[] InformationValue
53         {
54             get
55             {
56                 return _informationValue;
57             }
58         }
59     }
60
61     /// <summary>
62     /// Structure containing the information of Secure element Aid(Application Identifier).
63     /// </summary>
64     /// <since_tizen> 3 </since_tizen>
65     public class NfcRegisteredAidInformation
66     {
67         private NfcSecureElementType _seType;
68         private string _aid;
69         private bool _readOnly;
70
71         internal NfcRegisteredAidInformation(NfcSecureElementType seType, string aid, bool readOnly)
72         {
73             _seType = seType;
74             _aid = aid;
75             _readOnly = readOnly;
76         }
77
78         /// <summary>
79         /// Secure Element Type value.
80         /// </summary>
81         /// <since_tizen> 3 </since_tizen>
82         public NfcSecureElementType SeType
83         {
84             get
85             {
86                 return _seType;
87             }
88         }
89
90         /// <summary>
91         /// The targeted Aid (Application Identifier) value.
92         /// </summary>
93         /// <since_tizen> 3 </since_tizen>
94         public string Aid
95         {
96             get
97             {
98                 return _aid;
99             }
100         }
101
102         /// <summary>
103         /// Read-only value. If this value is false, there are restrictions to the operation on this Aid.
104         /// </summary>
105         /// <since_tizen> 3 </since_tizen>
106         public bool ReadOnly
107         {
108             get
109             {
110                 return _readOnly;
111             }
112         }
113     }
114 }