You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RTL/src/app/shared/models/RTLconfig.ts

70 lines
1.5 KiB
TypeScript

import { GetInfoChain } from './lndModels';
export class SSO {
constructor(
public rtlSSO: number,
public logoutRedirectLink: string
) { }
}
export class Settings {
constructor(
public flgSidenavOpened: boolean,
public flgSidenavPinned: boolean,
public menu: string,
public menuType: string,
public fontSize: string,
public themeMode: string,
public themeColor: string,
public satsToBTC: boolean,
public bitcoindConfigPath?: string,
public enableLogging?: boolean,
5 years ago
public lnServerUrl?: string,
public channelBackupPath?: string,
public currencyUnit?: string
) { }
}
export class Authentication {
constructor(
public nodeAuthType?: string,
5 years ago
public configPath?: string,
public bitcoindConfigPath?: string
) { }
}
export class LightningNode {
constructor(
public settings: Settings,
public authentication: Authentication,
public index?: string,
public lnNode?: string,
public lnImplementation?: string
) { }
}
export class RTLConfiguration {
constructor(
public selectedNodeIndex: number,
public sso: SSO,
public nodes: LightningNode[]
) { }
}
export interface GetInfoRoot {
identity_pubkey?: string;
alias?: string;
testnet?: boolean;
chains?: GetInfoChain[] | string[];
version?: string;
currency_unit?: string;
smaller_currency_unit?: string;
numberOfPendingChannels?: number;
}
export interface SelNodeChild {
channelBackupPath?: string;
satsToBTC?: boolean;
currencyUnits?: string[];
}