mirror of
				https://github.com/owncloud/android-library.git
				synced 2025-10-31 10:27:45 +00:00 
			
		
		
		
	
						commit
						57882e793e
					
				| @ -41,13 +41,13 @@ object LogBuilder { | ||||
| enum class NetworkPetition { | ||||
|     REQUEST, RESPONSE; | ||||
| 
 | ||||
|     override fun toString(): String = super.toString().toLowerCase(Locale.ROOT) | ||||
|     override fun toString(): String = super.toString().lowercase(Locale.ROOT) | ||||
| } | ||||
| 
 | ||||
| enum class NetworkNode { | ||||
|     INFO, HEADER, BODY; | ||||
| 
 | ||||
|     override fun toString(): String = super.toString().toLowerCase(Locale.ROOT) | ||||
|     override fun toString(): String = super.toString().lowercase(Locale.ROOT) | ||||
| } | ||||
| 
 | ||||
| /** | ||||
|  | ||||
| @ -74,7 +74,7 @@ class GetRemoteCapabilitiesOperation : RemoteOperation<RemoteCapability>() { | ||||
|                 val moshi: Moshi = Moshi.Builder().build() | ||||
|                 val type: Type = Types.newParameterizedType(CommonOcsResponse::class.java, CapabilityResponse::class.java) | ||||
|                 val adapter: JsonAdapter<CommonOcsResponse<CapabilityResponse>> = moshi.adapter(type) | ||||
|                 val commonResponse: CommonOcsResponse<CapabilityResponse>? = adapter.fromJson(response) | ||||
|                 val commonResponse: CommonOcsResponse<CapabilityResponse>? = response?.let { adapter.fromJson(it) } | ||||
| 
 | ||||
|                 result = RemoteOperationResult(OK) | ||||
|                 result.data = commonResponse?.ocs?.data?.toRemoteCapability() | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user