From 25e9bdb6358d88fec708447ddd4377d1530bd784 Mon Sep 17 00:00:00 2001 From: "Geunsun, Lee" Date: Tue, 28 Mar 2017 20:37:38 +0900 Subject: [PATCH] Add comments for DbgPort.cs Change-Id: I5913d6739d44ebc52c2f0032a9ed55c8394d2004 --- LibTVRefCommonTizen/Ports/DbgPort.cs | 46 +++++++++++++++++++++++++++--------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/LibTVRefCommonTizen/Ports/DbgPort.cs b/LibTVRefCommonTizen/Ports/DbgPort.cs index 24a10f5..c530c5e 100644 --- a/LibTVRefCommonTizen/Ports/DbgPort.cs +++ b/LibTVRefCommonTizen/Ports/DbgPort.cs @@ -23,8 +23,8 @@ using System; namespace LibTVRefCommonTizen.Ports { /// - /// Platform dependent implementation for the Logging and the Popup displaying. - /// DbgPort is implementing IDebuggingAPIs which is defined in Calculator shared project. + /// Platform dependent implementation for the Logging and the Popup displaying + /// DbgPort is implementing IDebuggingAPIs which is defined in Calculator shared project /// /// /// Please refer to Xamarin Dependency Service @@ -33,7 +33,9 @@ namespace LibTVRefCommonTizen.Ports public class DbgPort : IDebuggingAPIs { /// - /// A TV Home Windows reference. This is used to display a Dialog + /// A TV Home Windows reference + /// This is used to display a Dialog + /// public static Xamarin.Forms.Platform.Tizen.Native.Window MainWindow { set; @@ -41,7 +43,8 @@ namespace LibTVRefCommonTizen.Ports } /// - /// A Logging Tag. + /// A Logging Tag + /// public static string TAG = "home"; public static string Prefix @@ -51,24 +54,32 @@ namespace LibTVRefCommonTizen.Ports } /// - /// A method displays a debugging log. - /// A debugging message. + /// Displays a log message which developer want to check + /// + /// A debugging message + /// A file name that debugging message is exist + /// A function name that debugging message is exist + /// A line number that debugging message is exist public void Dbg(string message, String file, String func, Int32 line) { D(message, file, func, line); } /// - /// A method displays a error log. - /// A error message. + /// + /// A debugging message + /// A file name that debugging message is exist + /// A function name that debugging message is exist + /// A line number that debugging message is exist public void Err(string message, String file, String func, Int32 line) { E(message, file, func, line); } /// - /// A method displays a dialog with a given message. - /// A debugging message. + ///Displays a dialog with a given message + /// + /// A debugging message public void Popup(string message) { if (MainWindow == null) @@ -87,16 +98,29 @@ namespace LibTVRefCommonTizen.Ports toast.Show(); } + /// + /// Displays a log message which developer want to check + /// + /// A debugging message + /// A file name that debugging message is exist + /// A function name that debugging message is exist + /// A line number that debugging message is exist public static void D(string message, [CallerFilePath] System.String file = "", [CallerMemberName] System.String func = "", [CallerLineNumber] System.Int32 line = 0) { Log.Debug(TAG, Prefix + ", " + message, file, func, line); } + /// + /// Displays a error log message + /// + /// A debugging message + /// A file name that debugging message is exist + /// A function name that debugging message is exist + /// A line number that debugging message is exist public static void E(string message, [CallerFilePath] System.String file = "", [CallerMemberName] System.String func = "", [CallerLineNumber] System.Int32 line = 0) { Log.Error(TAG, Prefix + ", " + message, file, func, line); } - } } \ No newline at end of file -- 2.7.4