Ejemplo n.º 1
0
 /// <summary>
 /// Returns a string of C++ code usign the Notifications library that represents the content of the notification.
 /// </summary>
 /// <returns></returns>
 public string GenerateCPlusPlusCode()
 {
     if (Toast != null)
     {
         return(Toast.ConvertToObject().ToCPlusPlusString());
     }
     if (Tile != null)
     {
         return(Tile.ConvertToObject().ToCPlusPlusString());
     }
     return("Not implemented");
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns a string of C# code using the Notifications library that represents the content of the notification.
 /// </summary>
 /// <returns></returns>
 public string GenerateCSharpCode()
 {
     if (Toast != null)
     {
         return(WrapToastForCSharp(Toast.ConvertToObject().ToString()));
     }
     if (Tile != null)
     {
         return(WrapTileForCSharp(Tile.ConvertToObject().ToString()));
     }
     return("Not implemented");
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Returns a string of Javascript code usign the Notifications library that represents the content of the notification.
 /// </summary>
 /// <returns></returns>
 public string GenerateJavascriptCode()
 {
     if (Toast != null)
     {
         return(IncludeJsNamespaceDeclaration(
                    Toast.ConvertToObject().ToJavascriptString()));
     }
     if (Tile != null)
     {
         return(IncludeJsNamespaceDeclaration(
                    Tile.ConvertToObject().ToJavascriptString()));
     }
     return("Not implemented");
 }