adding GetObject and SaveObject methods for custom session serialization
- adding GetObject and SaveObject methods for custom session serialization
This commit is contained in:
parent
264a998052
commit
1709631965
@ -54,5 +54,10 @@ namespace TelegramBotBase.Args
|
||||
return false;
|
||||
}
|
||||
|
||||
public object GetObject(String key)
|
||||
{
|
||||
return Values[key];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -32,6 +32,10 @@ namespace TelegramBotBase.Args
|
||||
{
|
||||
Values[key] = value;
|
||||
}
|
||||
public void SetObject(String key, object value)
|
||||
{
|
||||
Values[key] = value;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user