-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Fun Func, and some fixes. Added new type UserSerializable
- Loading branch information
Showing
37 changed files
with
228 additions
and
3 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
Binary file not shown.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Telegram.Bot.Types; | ||
|
||
namespace Pes7BotCrator.Type | ||
{ | ||
[Serializable] | ||
public class UserSerializable | ||
{ | ||
public string PhotoPath { get; set; } = null; | ||
public int MessageCount { get; set; } | ||
public List<long> FromChat { get; set; } | ||
public string Username { get; set; } | ||
public string LastName { get; set; } | ||
public int Id { get; set; } | ||
public string FirstName { get; set; } | ||
public UserSerializable(UserM us) | ||
{ | ||
this.FromChat = us.FromChat; | ||
this.Username = us.Username; | ||
this.LastName = us.LastName; | ||
this.Id = us.Id; | ||
this.FirstName = us.FirstName; | ||
this.PhotoPath = us.PhotoPath; | ||
this.MessageCount = us.MessageCount; | ||
} | ||
public UserSerializable(User us) | ||
{ | ||
this.FromChat = new List<long>(); | ||
this.Username = us.Username; | ||
this.LastName = us.LastName; | ||
this.Id = us.Id; | ||
this.FirstName = us.FirstName; | ||
} | ||
public UserM GetUserM() | ||
{ | ||
var user = new User(); | ||
user.Id = Id; | ||
user.Username = Username; | ||
user.FirstName = FirstName; | ||
user.LastName = LastName; | ||
var m = new UserM(user); | ||
m.PhotoPath = PhotoPath; | ||
m.MessageCount = MessageCount; | ||
m.FromChat = FromChat; | ||
return m; | ||
} | ||
public User GetUser() | ||
{ | ||
var user = new User(); | ||
user.Id = Id; | ||
user.Username = Username; | ||
user.FirstName = FirstName; | ||
user.LastName = LastName; | ||
return user; | ||
} | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Pes7BotCrator/bin/Debug/Modules/FunFunc/FunRes.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+103 Bytes
(100%)
Pes7BotCrator/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
Binary file modified
BIN
+175 KB
(300%)
Pes7BotCrator/obj/Debug/Pes7BotCrator.Modules.FunFunc.FunRes.resources
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
Pes7BotCrator/obj/Debug/Pes7BotCrator.csproj.CoreCompileInputs.cache
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 +1 @@ | ||
ad39361cfafcb55edc8aaaada4cc97b47f23ba5f | ||
db3eb96273cebbf03566bf15fe6725b23916b965 |
Binary file modified
BIN
+46 Bytes
(100%)
Pes7BotCrator/obj/Debug/Pes7BotCrator.csproj.GenerateResource.Cache
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
Pes7BotCrator/obj/Debug/TempPE/Modules.FunFunc.FunRes.Designer.cs.dll
Binary file not shown.