using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Amazon.CognitoIdentity { /// /// Cognito Identity response delegate /// /// Typed response object /// public delegate void AmazonCognitoIdentityCallback(AmazonCognitoIdentityResult result); /// /// Typed cognito Identity result object returned as a response /// /// public class AmazonCognitoIdentityResult { /// /// The typed response /// public TResponse Response { get; internal set; } /// /// Exception object returned in case of error /// public Exception Exception { get; internal set; } /// /// An optional state object returned back /// public object State { get; internal set; } /// /// Constructor for /// /// an optional state object public AmazonCognitoIdentityResult(object state) { this.State = state; } /// /// Constructor for /// /// an optional state object /// Typed response /// Exception object incase of error public AmazonCognitoIdentityResult(TResponse response, Exception exception, object state) { this.Response = response; this.Exception = exception; this.State = state; } } }