Package com.jtelegram.api.update
Class UpdateType<T extends Update>
- java.lang.Object
-
- com.jtelegram.api.update.UpdateType<T>
-
public class UpdateType<T extends Update> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UpdateType.GsonTypeAdapter
-
Field Summary
Fields Modifier and Type Field Description static UpdateType<?>[]
ALL
static UpdateType<Update.CallbackQueryUpdate>
CALLBACK_QUERY
static UpdateType<Update.ChannelPostUpdate>
CHANNEL_POST
static UpdateType<Update.ChosenInlineResultUpdate>
CHOSEN_INLINE_RESULT
static UpdateType<Update.EditedChannelPostUpdate>
EDITED_CHANNEL_POST
static UpdateType<Update.EditedMessageUpdate>
EDITED_MESSAGE
static UpdateType<Update.InlineQueryUpdate>
INLINE_QUERY
static UpdateType<Update.MessageUpdate>
MESSAGE
static UpdateType<Update.PreCheckoutQueryUpdate>
PRE_CHECKOUT_QUERY
static UpdateType<Update.ShippingQueryUpdate>
SHIPPING_QUERY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateType<? extends Update>
from(java.lang.Class<? extends Update> clazz)
static UpdateType<? extends Update>
from(java.lang.String name)
java.util.function.BiFunction<TelegramBot,T,Event>
getEventFunction()
java.lang.String
getName()
java.lang.Class<T>
getUpdateClass()
java.lang.String
toString()
-
-
-
Field Detail
-
CHANNEL_POST
public static final UpdateType<Update.ChannelPostUpdate> CHANNEL_POST
-
EDITED_CHANNEL_POST
public static final UpdateType<Update.EditedChannelPostUpdate> EDITED_CHANNEL_POST
-
INLINE_QUERY
public static final UpdateType<Update.InlineQueryUpdate> INLINE_QUERY
-
CHOSEN_INLINE_RESULT
public static final UpdateType<Update.ChosenInlineResultUpdate> CHOSEN_INLINE_RESULT
-
SHIPPING_QUERY
public static final UpdateType<Update.ShippingQueryUpdate> SHIPPING_QUERY
-
PRE_CHECKOUT_QUERY
public static final UpdateType<Update.PreCheckoutQueryUpdate> PRE_CHECKOUT_QUERY
-
CALLBACK_QUERY
public static final UpdateType<Update.CallbackQueryUpdate> CALLBACK_QUERY
-
MESSAGE
public static final UpdateType<Update.MessageUpdate> MESSAGE
-
EDITED_MESSAGE
public static final UpdateType<Update.EditedMessageUpdate> EDITED_MESSAGE
-
ALL
public static final UpdateType<?>[] ALL
-
-
Method Detail
-
from
public static UpdateType<? extends Update> from(java.lang.Class<? extends Update> clazz)
-
from
public static UpdateType<? extends Update> from(java.lang.String name)
-
getName
public java.lang.String getName()
-
getUpdateClass
public java.lang.Class<T> getUpdateClass()
-
getEventFunction
public java.util.function.BiFunction<TelegramBot,T,Event> getEventFunction()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-