-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from Web3Auth/feat/sapphire-updates
Feat/sapphire updates
- Loading branch information
Showing
11 changed files
with
348 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.Collections.Generic; | ||
|
||
public class MfaSetting | ||
{ | ||
public bool enable { get; set; } | ||
public int? priority { get; set; } | ||
public bool? mandatory { get; set; } | ||
|
||
// Constructor | ||
public MfaSetting(bool enable, int? priority, bool? mandatory) | ||
{ | ||
enable = enable; | ||
priority = priority; | ||
mandatory = mandatory; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
public class MfaSettings | ||
{ | ||
private MfaSetting deviceShareFactor; | ||
private MfaSetting backUpShareFactor; | ||
private MfaSetting socialBackupFactor; | ||
private MfaSetting passwordFactor; | ||
|
||
public MfaSetting DeviceShareFactor | ||
{ | ||
get { return deviceShareFactor; } | ||
set { deviceShareFactor = value; } | ||
} | ||
|
||
public MfaSetting BackUpShareFactor | ||
{ | ||
get { return backUpShareFactor; } | ||
set { backUpShareFactor = value; } | ||
} | ||
|
||
public MfaSetting SocialBackupFactor | ||
{ | ||
get { return socialBackupFactor; } | ||
set { socialBackupFactor = value; } | ||
} | ||
|
||
public MfaSetting PasswordFactor | ||
{ | ||
get { return passwordFactor; } | ||
set { passwordFactor = value; } | ||
} | ||
|
||
// Constructors | ||
public MfaSettings( | ||
MfaSetting deviceShareFactor = null, | ||
MfaSetting backUpShareFactor = null, | ||
MfaSetting socialBackupFactor = null, | ||
MfaSetting passwordFactor = null) | ||
{ | ||
deviceShareFactor = deviceShareFactor; | ||
backUpShareFactor = backUpShareFactor; | ||
socialBackupFactor = socialBackupFactor; | ||
passwordFactor = passwordFactor; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
public class WhiteLabelData { | ||
public string name { get; set; } | ||
public string logoLight { get; set; } | ||
public string logoDark { get; set; } | ||
public string defaultLanguage { get; set; } = "en"; | ||
public bool dark { get; set; } = false; | ||
public Dictionary<string, string> theme { get; set; } | ||
public class WhiteLabelData { | ||
public string? appName { get; set; } | ||
public string? logoLight { get; set; } | ||
public string? logoDark { get; set; } | ||
public Web3Auth.Language? defaultLanguage { get; set; } = Web3Auth.Language.en; | ||
public Web3Auth.ThemeModes? mode { get; set; } = Web3Auth.ThemeModes.light; | ||
public Dictionary<string, string>? theme { get; set; } | ||
public string? appUrl { get; set; } | ||
public bool? useLogoLoader { get; set; } = false; | ||
} |
Oops, something went wrong.