From 54359c930767e11dda726fbdd129daea423dd200 Mon Sep 17 00:00:00 2001 From: Jongkyu Koo Date: Tue, 12 Sep 2017 10:07:52 +0900 Subject: [PATCH] Add telephony feature and API level Change-Id: Iaac3f46d33e80afeecfb28ae5b317a9eb2f48f26 Signed-off-by: Jongkyu Koo --- .../Tizen.PhonenumberUtils/NamespaceDoc.cs | 1 + .../Tizen.PhonenumberUtils/PhonenumberUtils.cs | 20 +++++++++++++++++--- .../PhonenumberUtilsEnumerations.cs | 8 ++++---- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs index 42e91c1..6960e7f 100644 --- a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs +++ b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/NamespaceDoc.cs @@ -4,4 +4,5 @@ /// /// The Tizen.PhonenumberUtils namespace provides a class for parsing, formatting and normalizing phone numbers. /// +/// 4 namespace Tizen.PhonenumberUtils {} diff --git a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs index c410568..9368f8c 100644 --- a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs +++ b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtils.cs @@ -21,10 +21,18 @@ namespace Tizen.PhonenumberUtils /// /// The PhonenumberUtils class provides methods for parsing, formatting and normalizing phone numbers. /// + /// 4 public class PhonenumberUtils : IDisposable { private bool disposed = false; + /// + /// Creates a PhonenumberUtils. + /// + /// http://tizen.org/feature/network.telephony + /// Thrown when method failed due to invalid operation + /// Thrown when feature is not supported + /// 4 public PhonenumberUtils() { int ret; @@ -46,6 +54,7 @@ namespace Tizen.PhonenumberUtils /// Releases all resources used by the PhonenumberUtils. /// It should be called after finished using of the object. /// + /// 4 public void Dispose() { Dispose(true); @@ -74,10 +83,12 @@ namespace Tizen.PhonenumberUtils /// The region of number /// The language of location /// The location string + /// http://tizen.org/feature/network.telephony /// Thrown when method failed due to invalid operation - /// Thrown when phonenumber-utils is not supported + /// Thrown when feature is not supported /// Thrown when input coordinates are invalid /// Thrown when failed due to out of memory + /// 4 public string GetLocationFromNumber(string number, Region region, Language language) { int ret; @@ -99,10 +110,12 @@ namespace Tizen.PhonenumberUtils /// The number /// The region of number /// The formatted number string + /// http://tizen.org/feature/network.telephony /// Thrown when method failed due to invalid operation - /// Thrown when phonenumber-utils is not supported + /// Thrown when feature is not supported /// Thrown when input coordinates are invalid /// Thrown when failed due to out of memory + /// 4 public string GetFormattedNumber(string number, Region region) { int ret; @@ -126,7 +139,7 @@ namespace Tizen.PhonenumberUtils /// http://tizen.org/privilege/telephony /// http://tizen.org/feature/network.telephony /// Thrown when method failed due to invalid operation - /// Thrown when phonenumber-utils is not supported + /// Thrown when feature is not supported /// Thrown when input coordinates are invalid /// Thrown when failed due to out of memory /// Thrown when application does not have proper privileges @@ -134,6 +147,7 @@ namespace Tizen.PhonenumberUtils /// Normalized number starts with plus('+') and country code, and excludes the separators such as dash or space. /// It is a format of E.164 standard including the country code based on current network. /// + /// 4 public string GetNormalizedNumber(string number) { int ret; diff --git a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtilsEnumerations.cs b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtilsEnumerations.cs index 8710866..b1294cf 100644 --- a/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtilsEnumerations.cs +++ b/src/Tizen.PhonenumberUtils/Tizen.PhonenumberUtils/PhonenumberUtilsEnumerations.cs @@ -19,6 +19,7 @@ namespace Tizen.PhonenumberUtils /// /// Enumeration for language type. /// + /// 4 public enum Language { /// @@ -144,13 +145,13 @@ namespace Tizen.PhonenumberUtils /// /// Current System Value /// - System, - Max + System } /// /// Enumeration for region type. /// + /// 4 public enum Region { /// @@ -1132,7 +1133,6 @@ namespace Tizen.PhonenumberUtils /// /// Current System Value /// - System, - Max + System } } -- 2.7.4