-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
98 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace Taiizor.Essentials.Maui.AppCenter.Enum | ||
{ | ||
public enum WatchEnum | ||
{ | ||
Open, | ||
Close | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using Taiizor.Essentials.Maui.AppCenter.Services; | ||
using Taiizor.Essentials.Maui.AppCenter.Value; | ||
|
||
namespace Taiizor.Essentials.Maui.AppCenter.Helper | ||
{ | ||
internal class Watch | ||
{ | ||
public static string GetText(string Title) | ||
{ | ||
return string.Format($"{Internal.AppCenterWatch.Format}", Internal.AppCenterWatch.Prefix, Internal.AppCenterWatch.Name, Title, AppCenterService.UserId, Internal.AppCenterWatch.Suffix); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/Taiizor.Essentials.Maui.AppCenter/Struct/WatchStruct.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Runtime.InteropServices; | ||
using Taiizor.Essentials.Maui.AppCenter.Enum; | ||
|
||
namespace Taiizor.Essentials.Maui.AppCenter.Struct | ||
{ | ||
[StructLayout(LayoutKind.Sequential)] | ||
public struct WatchStruct | ||
{ | ||
public string Format; | ||
public string Prefix; | ||
public string Suffix; | ||
public string Name; | ||
public WatchEnum Event; | ||
public WatchEnum Error; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters