C# 클래스 Amazon.CognitoSync.SyncManager.Internal.DatasetUtils

A Utility class for all the dataset operations
파일 보기 프로젝트 열기: aws/aws-sdk-net

공개 프로퍼티들

프로퍼티 타입 설명
DATASET_NAME_PATTERN string
UNKNOWN_IDENTITY_ID string

공개 메소드들

메소드 설명
ComputeRecordSize ( Record record ) : long

A helper function to compute record size which equals the sum of the UTF-8 string length of record key and value. 0 if record is null.

GetIdentityId ( CognitoAWSCredentials credentials ) : string

A helper function to get the identity id of the dataset from credentials provider. If the identity id is null, UNKNOWN_IDENTITY_ID will be returned.

TruncateToSeconds ( System.DateTime dateTime ) : System.DateTime

A helper function to truncate a DateTime object to whole seconds.

ValidateDatasetName ( string datasetName ) : string

Validates the dataset name.

ValidateRecordKey ( string key ) : string

Validates the record key. It must be non empty and its length must be no greater than 128. Otherwise {@link IllegalArgumentException} will be thrown.

메소드 상세

ComputeRecordSize() 공개 정적인 메소드

A helper function to compute record size which equals the sum of the UTF-8 string length of record key and value. 0 if record is null.
public static ComputeRecordSize ( Record record ) : long
record Record Record.
리턴 long

GetIdentityId() 공개 정적인 메소드

A helper function to get the identity id of the dataset from credentials provider. If the identity id is null, UNKNOWN_IDENTITY_ID will be returned.
public static GetIdentityId ( CognitoAWSCredentials credentials ) : string
credentials Amazon.CognitoIdentity.CognitoAWSCredentials The Cognito Credentials.
리턴 string

TruncateToSeconds() 공개 정적인 메소드

A helper function to truncate a DateTime object to whole seconds.
public static TruncateToSeconds ( System.DateTime dateTime ) : System.DateTime
dateTime System.DateTime The DateTime to be truncated.
리턴 System.DateTime

ValidateDatasetName() 공개 정적인 메소드

Validates the dataset name.
public static ValidateDatasetName ( string datasetName ) : string
datasetName string Dataset name.
리턴 string

ValidateRecordKey() 공개 정적인 메소드

Validates the record key. It must be non empty and its length must be no greater than 128. Otherwise {@link IllegalArgumentException} will be thrown.
public static ValidateRecordKey ( string key ) : string
key string Key.
리턴 string

프로퍼티 상세

DATASET_NAME_PATTERN 공개적으로 정적으로 프로퍼티

Valid dataset name pattern
public static string DATASET_NAME_PATTERN
리턴 string

UNKNOWN_IDENTITY_ID 공개적으로 정적으로 프로퍼티

Unknown identity id when the identity id is null
public static string UNKNOWN_IDENTITY_ID
리턴 string