Version up : 1.0.3 to 1.0.4
[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     public class NfcTagInformation
26     {
27         private string _key;
28         private byte[] _informationValue;
29
30         internal NfcTagInformation(string key, byte[] informationValue)
31         {
32             _key = key;
33             _informationValue = informationValue;
34         }
35
36         /// <summary>
37         /// Key value.
38         /// </summary>
39         public string Key
40         {
41             get
42             {
43                 return _key;
44             }
45         }
46         /// <summary>
47         /// Information value.
48         /// </summary>
49         public byte[] InformationValue
50         {
51             get
52             {
53                 return _informationValue;
54             }
55         }
56     }
57
58     /// <summary>
59     /// Structure containing the information of Secure element Aid(Application Identifier).
60     /// </summary>
61     public class NfcRegisteredAidInformation
62     {
63         private NfcSecureElementType _seType;
64         private string _aid;
65         private bool _readOnly;
66
67         internal NfcRegisteredAidInformation(NfcSecureElementType seType, string aid, bool readOnly)
68         {
69             _seType = seType;
70             _aid = aid;
71             _readOnly = readOnly;
72         }
73
74         /// <summary>
75         /// Secure Element Type value.
76         /// </summary>
77         public NfcSecureElementType SeType
78         {
79             get
80             {
81                 return _seType;
82             }
83         }
84
85         /// <summary>
86         /// 
87         /// The targeted Aid (Application Identifier) value.
88         /// </summary>
89         public string Aid
90         {
91             get
92             {
93                 return _aid;
94             }
95         }
96
97         /// <summary>
98         /// Read-only value. If this value is false, there are restrictions to the operation on this Aid.
99         /// </summary>
100         public bool ReadOnly
101         {
102             get
103             {
104                 return _readOnly;
105             }
106         }
107     }
108 }