ZbDbManager
static class · namespace z3n7 · source Api/ZB.cs
public static class ZbDbManager
Reading the ZennoBrowser profile database and parsing its profile lists.
Methods
ZBDbGet
public static string ZBDbGet(this IZennoPosterProjectModel project, string query, string tableName = "ProfileInfos", bool log = false)
Extension method for IZennoPosterProjectModel. source
Reads query columns of the profile whose id is in the zb_id variable, directly from %LOCALAPPDATA%\ZennoLab\ZP8\.zp8\ProfileManagement.db.
| Parameter | Description |
|---|---|
query |
Comma-separated column names. |
tableName |
Table. |
log |
Write the query and its result to the log. |
Returns: Columns joined by ¦; empty when there is no such profile.
ZBIdDic
public static Dictionary<string, string> ZBIdDic(this IZennoPosterProjectModel project, string json, string folder = null)
Extension method for IZennoPosterProjectModel. source
Maps profile names to ids from a JSON array of ZennoBrowser profiles (Name, Id, FolderName); for duplicate names the first wins.
| Parameter | Description |
|---|---|
json |
JSON array of profiles. |
folder |
Only profiles of this folder; empty for all. |
ZBIdList
public static List<string> ZBIdList(this IZennoPosterProjectModel project, string json, string folder = "Farm")
Extension method for IZennoPosterProjectModel. source
Profile ids of a folder from a JSON array of profiles (see ZBIdDic).
| Parameter | Description |
|---|---|
json |
JSON array of profiles. |
folder |
Folder name. |