Package com.jtelegram.api.message.media
Class Voice
- java.lang.Object
-
- com.jtelegram.api.message.media.SendableMedium
-
- com.jtelegram.api.message.media.FileMedium
-
- com.jtelegram.api.message.media.Voice
-
- All Implemented Interfaces:
DuratableMedium
,MimeableMedium
public class Voice extends FileMedium implements MimeableMedium, DuratableMedium
-
-
Constructor Summary
Constructors Constructor Description Voice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getDuration()
java.lang.String
getMimeType()
java.lang.String
toString()
-
Methods inherited from class com.jtelegram.api.message.media.FileMedium
getFileId, getFileSize
-
-
-
-
Method Detail
-
getDuration
public long getDuration()
- Specified by:
getDuration
in interfaceDuratableMedium
-
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeType
in interfaceMimeableMedium
-
toString
public java.lang.String toString()
- Overrides:
toString
in classFileMedium
-
-