AppData

AppData struct

Members

Variables

accessToken
string accessToken;
Undocumented in source.
currentVideo
Json currentVideo;
Undocumented in source.
name
string name;
Undocumented in source.
namespace
string namespace;
Undocumented in source.
page
string page;
Undocumented in source.
refreshToken
string refreshToken;
Undocumented in source.
username
string username;
Undocumented in source.
videos
Json videos;
Undocumented in source.

Examples

import fastjwt.jwt;
import vibe.data.json: Json;

auto data = AppData
(
	"Test App",
	"Test Module", 
	"token", 
	"refreshToken",
	"crowdfunding",
	"user1",
	Json(""),
	Json()
);

assert(is(typeof(data) == AppData));
assert(is(typeof(data.name) == string));
assert(is(typeof(data.namespace) == string));
assert(is(typeof(data.accessToken) == string));
assert(is(typeof(data.refreshToken) == string));
assert(is(typeof(data.page) == string));
assert(is(typeof(data.username) == string));
assert(is(typeof(data.videos) == Json));
assert(is(typeof(data.currentVideo) == Json));
assert(data.name == "Test App");
assert(data.namespace == "Test Module");
assert(data.accessToken == "token");
assert(data.refreshToken == "refreshToken");
assert(data.page == "crowdfunding");
assert(data.username == "user1");
assert(data.videos == Json(""));
// assert(data.currentVideo == "vky56f6uykty");

Meta