public class PCUserBackupData
extends java.lang.Object
PCUserRestore
class.fromJson(String)
and toJson()
instead.Constructor and Description |
---|
PCUserBackupData()
Creates an empty object.
|
Modifier and Type | Method and Description |
---|---|
static PCUserBackupData |
fromJson(java.lang.String json)
This function imports backup data from json.
|
long |
getCreationTimeMillis()
Returns time when backup was created in milliseconds
|
java.lang.String |
getDeviceName()
Name of the device on which the backup was created
|
java.lang.String |
getEncodedCodeword() |
java.lang.String |
getExternalUrl() |
byte[] |
getIV()
Initialization vector used to encrypt codeword
|
java.lang.String |
getSystemId() |
int |
getType()
Returns type of
PCUser . |
java.lang.String |
getUserId() |
java.lang.String |
getUserName() |
java.lang.String |
toJson()
Use this method to save the data as a string and restore when on another device with usage of
fromJson(String) and
PCUserRestore.restoreBackup(PCUserBackupData, String, PCRestoreCallback) |
java.lang.String |
toString() |
public PCUserBackupData()
fromJson(String)
or instance returned by PCUserRestore
class when you are
creating backup.public static PCUserBackupData fromJson(java.lang.String json)
toJson()
.json
- Json as string which contains all necessary fieldsPCUserBackupData
object ready to be used in
PCUserRestore.restoreBackup(PCUserBackupData, String, PCRestoreCallback)
public java.lang.String getUserId()
public java.lang.String getSystemId()
public java.lang.String getExternalUrl()
public java.lang.String getUserName()
public java.lang.String getEncodedCodeword()
PCUserRestore.createBackupData(PCUser, String, PCUserBackupCallback)
for more details.public long getCreationTimeMillis()
public java.lang.String getDeviceName()
public int getType()
PCUser
. The same as PCUser.getType()
public byte[] getIV()
public java.lang.String toJson()
fromJson(String)
and
PCUserRestore.restoreBackup(PCUserBackupData, String, PCRestoreCallback)
public java.lang.String toString()
toString
in class java.lang.Object