24 lines
		
	
	
		
			685 B
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			685 B
		
	
	
	
		
			C#
		
	
	
	
|  | using YooAsset; | |||
|  | 
 | |||
|  | /// <summary> | |||
|  | /// Զ<><D4B6><EFBFBD><EFBFBD>Դ<EFBFBD><D4B4>ַ<EFBFBD><D6B7>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD> | |||
|  | /// </summary> | |||
|  | public class RemoteServices : IRemoteServices | |||
|  | { | |||
|  |     private readonly string _defaultHostServer; | |||
|  |     private readonly string _fallbackHostServer; | |||
|  | 
 | |||
|  |     public RemoteServices(string defaultHostServer, string fallbackHostServer) | |||
|  |     { | |||
|  |         _defaultHostServer = defaultHostServer; | |||
|  |         _fallbackHostServer = fallbackHostServer; | |||
|  |     } | |||
|  |     string IRemoteServices.GetRemoteMainURL(string fileName) | |||
|  |     { | |||
|  |         return $"{_defaultHostServer}/{fileName}"; | |||
|  |     } | |||
|  |     string IRemoteServices.GetRemoteFallbackURL(string fileName) | |||
|  |     { | |||
|  |         return $"{_fallbackHostServer}/{fileName}"; | |||
|  |     } | |||
|  | } |