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; }
public void SetExpectedLyftOAuthResponse(LyftOAuthResponse lyftOAuthResponse) { ExpectedLyftOAuthResponse = lyftOAuthResponse; }