Client: try to plan out a basic structure.

This commit is contained in:
Sayan Biswas 2021-09-07 00:04:35 +05:30
parent 0fb30da3fe
commit a99696f932
No known key found for this signature in database
GPG Key ID: E1220C019C89B488
3 changed files with 33 additions and 0 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ woto_files/
woto_docs/
woto_tests/
woto_objects/
/.vs/

View File

@ -0,0 +1,22 @@
using SocialVoid.Methods;
namespace SocialVoid.Client
{
class SocialvoidClient
{
public string PUB_HASH, PVT_HASH, SOCIALVOID_PLATFORM, SOCIALVOID_VERSION;
public SocialvoidClient(string public_hash, string private_hash, string platform, string version)
{
PUB_HASH = public_hash;
PVT_HASH = private_hash;
SOCIALVOID_PLATFORM = platform;
SOCIALVOID_VERSION = version;
bool createsession()
{
return Methods.CreateSession.Do(PUB_HASH, PVT_HASH, SOCIALVOID_PLATFORM, SOCIALVOID_VERSION);
}
}
}
}

View File

@ -0,0 +1,10 @@
namespace SocialVoid.Methods
{
class CreateSession
{
public static bool Do(string public_hash, string private_hash, string platform, string version)
{
return true;
}
}
}