adding GetObject and SaveObject methods for custom session serialization

- adding GetObject and SaveObject methods for custom session serialization
This commit is contained in:
FlorianDahn 2021-06-07 01:33:57 +02:00
parent 264a998052
commit 1709631965
2 changed files with 9 additions and 0 deletions

View File

@ -54,5 +54,10 @@ namespace TelegramBotBase.Args
return false; return false;
} }
public object GetObject(String key)
{
return Values[key];
}
} }
} }

View File

@ -32,6 +32,10 @@ namespace TelegramBotBase.Args
{ {
Values[key] = value; Values[key] = value;
} }
public void SetObject(String key, object value)
{
Values[key] = value;
}
} }
} }