Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Module(subcomponents = ChatComponent.class)
- public class ChatModule {
- @Named("chat-id") private final long chatId;
- @Named("channel-token") private final String channelToken;
- public ChatModule(long chatId, String channelToken) {
- this.chatId = chatId;
- this.channelToken = channelToken;
- }
- @Provides
- @Named("chat-id") long provideChannelId() {
- return chatId;
- }
- @Provides
- @Named("channel-token") String provideChannelToken() {
- return channelToken;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement