Esempio n. 1
0
        private void PopulateCredentials(LyftOAuthResponse lyftResponse, GetARyderCredentials getARyderCredentials)
        {
            getARyderCredentials.AccessToken = lyftResponse.AccessToken;

            getARyderCredentials.AccessTokenExpiration =
                DateTime.Today.ToUniversalTime().Subtract(DateTime.UnixEpoch).Add(TimeSpan.FromSeconds(lyftResponse.ExpiresIn)).TotalMilliseconds;
        }
Esempio n. 2
0
 public void SetExpectedLyftOAuthResponse(LyftOAuthResponse lyftOAuthResponse)
 {
     ExpectedLyftOAuthResponse = lyftOAuthResponse;
 }