private static Types.DataSource AsDataSource(GooglePlayGames.BasicApi.DataSource source) { if (source != GooglePlayGames.BasicApi.DataSource.ReadCacheOrNetwork) { if (source != GooglePlayGames.BasicApi.DataSource.ReadNetworkOnly) { throw new InvalidOperationException("Found unhandled DataSource: " + source); } return(Types.DataSource.NETWORK_ONLY); } return(Types.DataSource.CACHE_OR_NETWORK); }
internal static GooglePlayGames.Native.Cwrapper.Types.DataSource AsDataSource(GooglePlayGames.BasicApi.DataSource source) { GooglePlayGames.BasicApi.DataSource source2 = source; if (source2 != GooglePlayGames.BasicApi.DataSource.ReadCacheOrNetwork) { if (source2 != GooglePlayGames.BasicApi.DataSource.ReadNetworkOnly) { throw new InvalidOperationException("Found unhandled DataSource: " + source); } return(GooglePlayGames.Native.Cwrapper.Types.DataSource.NETWORK_ONLY); } return(GooglePlayGames.Native.Cwrapper.Types.DataSource.CACHE_OR_NETWORK); }