Release 4.0.0-preview1-00194
[platform/core/csapi/tizenfx.git] / src / Tizen.Account.SyncManager / Tizen.Account.SyncManager / Enumerations.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
19 namespace Tizen.Account.SyncManager
20 {
21         /// <summary>
22         /// Enumeration for the sync option.
23         /// </summary>
24     [Flags]
25     public enum SyncOption
26     {
27         /// <summary>
28         /// The sync job will be operated normally.
29         /// </summary>
30         None = 0,
31
32         /// <summary>
33         /// The sync job will be operated as soon as possible.
34         /// </summary>
35         Expedited = 0X01,
36
37         /// <summary>
38         /// The sync job will not be performed again when it fails.
39         /// </summary>
40         NoRetry = 0X02,
41     }
42
43         /// <summary>
44         /// Enumeration for the sync period.
45         /// </summary>
46     public enum SyncPeriod
47     {
48         /// <summary>
49         /// Sync within 30 minutes.
50         /// </summary>
51         ThirtyMin = 0,
52
53         /// <summary>
54         /// Sync within 1 hour.
55         /// </summary>
56         OneHour,
57
58         /// <summary>
59         /// Sync within 2 hours.
60         /// </summary>
61         TwoHours,
62
63         /// <summary>
64         /// Sync within 3 hours.
65         /// </summary>
66         ThreeHours,
67
68         /// <summary>
69         /// Sync within 6 hours.
70         /// </summary>
71         SixHours,
72
73         /// <summary>
74         /// Sync within 12 hours.
75         /// </summary>
76         TwelveHours,
77
78         /// <summary>
79         /// Sync within 1 day.
80         /// </summary>
81         OneDay,
82     }
83 }
84