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 void
attachTo(okhttp3.MultipartBody.Builder builder)
java.io.File
getData()
java.lang.String
getIdentifier()
Identifier for the InputFile If non-null, then this will use the attach protocol and call the attachTo methodjava.lang.String
toString()
-
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:InputFile
Identifier for the InputFile If non-null, then this will use the attach protocol and call the attachTo method- Specified by:
getIdentifier
in interfaceInputFile<java.io.File>
-
attachTo
public void attachTo(okhttp3.MultipartBody.Builder builder)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-