-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Enums for BackgroundFill and BackgroundType
- Loading branch information
1 parent
ddb8e32
commit 466902c
Showing
11 changed files
with
62 additions
and
13 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
src/RxTelegram.Bot/Interface/ChatBackground/BackgroundFill.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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
using RxTelegram.Bot.Interface.ChatBackground.Enums; | ||
using RxTelegram.Bot.Utils.MultiType; | ||
|
||
namespace RxTelegram.Bot.Interface.ChatBackground; | ||
|
||
public abstract class BackgroundFill | ||
public abstract class BackgroundFill : IMultiTypeClassByType<BackgroundFillTypes> | ||
{ | ||
public abstract string Type { get; } | ||
public abstract BackgroundFillTypes Type { get; set; } | ||
} |
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
6 changes: 4 additions & 2 deletions
6
src/RxTelegram.Bot/Interface/ChatBackground/BackgroundFillSolid.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
7 changes: 5 additions & 2 deletions
7
src/RxTelegram.Bot/Interface/ChatBackground/BackgroundType.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 |
---|---|---|
@@ -1,6 +1,9 @@ | ||
using RxTelegram.Bot.Interface.ChatBackground.Enums; | ||
using RxTelegram.Bot.Utils.MultiType; | ||
|
||
namespace RxTelegram.Bot.Interface.ChatBackground; | ||
|
||
public abstract class BackgroundType | ||
public abstract class BackgroundType : IMultiTypeClassByType<BackgroundTypes> | ||
{ | ||
public abstract string Type { get; } | ||
public abstract BackgroundTypes Type { get; set; } | ||
} |
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
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
15 changes: 15 additions & 0 deletions
15
src/RxTelegram.Bot/Interface/ChatBackground/Enums/BackgroundFillTypes.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,15 @@ | ||
using RxTelegram.Bot.Utils.MultiType; | ||
|
||
namespace RxTelegram.Bot.Interface.ChatBackground.Enums; | ||
|
||
public enum BackgroundFillTypes | ||
{ | ||
[ImplementationType(typeof(BackgroundFillFreeformGradient))] | ||
FreeformGradient, | ||
|
||
[ImplementationType(typeof(BackgroundFillGradient))] | ||
Gradient, | ||
|
||
[ImplementationType(typeof(BackgroundFillSolid))] | ||
Solid | ||
} |
18 changes: 18 additions & 0 deletions
18
src/RxTelegram.Bot/Interface/ChatBackground/Enums/BackgroundTypes.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,18 @@ | ||
using RxTelegram.Bot.Utils.MultiType; | ||
|
||
namespace RxTelegram.Bot.Interface.ChatBackground.Enums; | ||
|
||
public enum BackgroundTypes | ||
{ | ||
[ImplementationType(typeof(BackgroundTypeChatTheme))] | ||
ChatTheme, | ||
|
||
[ImplementationType(typeof(BackgroundTypeFill))] | ||
Fill, | ||
|
||
[ImplementationType(typeof(BackgroundTypePattern))] | ||
Pattern, | ||
|
||
[ImplementationType(typeof(BackgroundTypeWallpaper))] | ||
Wallpaper | ||
} |