Constantes

static class · namespace z3n7 · source Essentials/Vars.cs

public static class Constantes

Project name, its database table and the standard folders of the profile storage.

Methods

FullPath

public static string FullPath(this IZennoPosterProjectModel project)

Extension method for IZennoPosterProjectModel. source

Returns the full path of the project file.

PathCookies

public static string PathCookies(this IZennoPosterProjectModel project)

Extension method for IZennoPosterProjectModel. source

Returns {profiles}/accounts/cookies/{acc0}.json, or an empty string with a warning when acc0 is empty.

PathProfileFolder

public static string PathProfileFolder(this IZennoPosterProjectModel project)

Extension method for IZennoPosterProjectModel. source

Returns {profiles}/accounts/profilesFolder/{acc0}, or an empty string with a warning when acc0 is empty.

PathProfiles

public static string PathProfiles(this IZennoPosterProjectModel project)

Extension method for IZennoPosterProjectModel. source

Returns the profile storage root: the profiles_folder variable, else the global variable of the same name. Whichever is found is copied to the other one.

Remarks: Throws when neither is set.

ProjectName

public static string ProjectName(this IZennoPosterProjectModel project)

Extension method for IZennoPosterProjectModel. source

Returns the project file name up to the first dot and stores it in projectName.

ProjectTable

public static string ProjectTable(this IZennoPosterProjectModel project)

Extension method for IZennoPosterProjectModel. source

Returns __ + project name and stores it in projectTable.

SecureVar

public static string SecureVar(this IZennoPosterProjectModel project, string key)

Extension method for IZennoPosterProjectModel. source

Reads a value from the encrypted jVars variable: decrypts it with SAFU.DecryptHWID, decodes Base64 and looks the key up in the resulting JSON object.

Returns: The value, or an empty string when jVars is empty, cannot be decrypted, or has no such key.