Example #1
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, GimleClient gimleClient)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints => { endpoints.MapControllers(); });

            app.UseGimle();

            gimleClient.UpdateHomeAsync("U631X4HNY", "profile_with_sparrow");
        }
Example #2
0
 public BadMoodHandler(GimleClient gimleClient) => _gimleClient = gimleClient;
Example #3
0
 public ShowSparrowHandler(GimleClient gimleClient) => _gimleClient = gimleClient;
Example #4
0
 public MeaningOfLifeHandler(GimleClient gimleClient) => _gimleClient = gimleClient;
Example #5
0
 public WelcomeController(GimleClient gimleClient) => _gimleClient = gimleClient;
Example #6
0
 public JokeAction(GimleClient gimleClient) => _gimleClient = gimleClient;