Class LocalInputFile
- java.lang.Object
-
- com.jtelegram.api.message.input.file.LocalInputFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jtelegram.api.message.input.file.InputFile
InputFile.Serializer
-
-
Constructor Summary
Constructors Constructor Description LocalInputFile(java.io.File data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachTo(okhttp3.MultipartBody.Builder builder)java.io.FilegetData()java.lang.StringgetIdentifier()Identifier for the InputFile If non-null, then this will use the attach protocol and call the attachTo methodjava.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.jtelegram.api.message.input.file.InputFile
isAttachable
-
-
-
-
Method Detail
-
getIdentifier
public java.lang.String getIdentifier()
Description copied from interface:InputFileIdentifier for the InputFile If non-null, then this will use the attach protocol and call the attachTo method- Specified by:
getIdentifierin interfaceInputFile<java.io.File>
-
attachTo
public void attachTo(okhttp3.MultipartBody.Builder builder)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-