Class MediaFile


  • public class MediaFile
    extends java.lang.Object
    Wrapper class to subsitute previous version of Retrofit's TypeFile
    • Constructor Summary

      Constructors 
      Constructor Description
      MediaFile​(java.lang.String type, java.io.File file)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      okhttp3.MultipartBody.Part createMultipartBody​(java.lang.String field)  
      long length()  
      java.lang.String type()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MediaFile

        public MediaFile​(java.lang.String type,
                         java.io.File file)
    • Method Detail

      • length

        public long length()
      • type

        public java.lang.String type()
      • createMultipartBody

        public okhttp3.MultipartBody.Part createMultipartBody​(java.lang.String field)