openSession method
Future<SessionV1?>
openSession(
- String? correlationId,
- String? user_id,
- String? user_name,
- String? address,
- String? client,
- dynamic user,
- dynamic data,
override
Creates a new session.
correlation_id
(optional) transaction id to trace execution through call chain.user_id
an user id of created session.user_name
an user name of created session.address
an address of created session.client
a client of created session.user
an user of created session.data
an data of created session. Return (optional) Future that receives created session or error.
Implementation
@override
Future<SessionV1?> openSession(String? correlationId, String? user_id,
String? user_name, String? address, String? client, user, data) {
var session = SessionV1(
id: IdGenerator.nextLong(),
user_id: user_id,
user_name: user_name,
address: address,
client: client);
session.user = user;
session.data = data;
return persistence.create(correlationId, session);
}