Finished example.

This commit is contained in:
retoor 2024-12-16 22:31:04 +01:00
parent f3e85ef138
commit 9e0e316cd3
231 changed files with 47 additions and 4823 deletions
.gitignore
.history
DrApi_20241215174614.csDrApi_20241215175010.csDrApi_20241215175033.csDrApi_20241215175929.csDrApi_20241215175930.csDrApi_20241215180014.csDrApi_20241215180032.csDrApi_20241215180054.csDrApi_20241215180055.csDrApi_20241215180126.csDrApi_20241215180127.csDrApi_20241215180146.csDrApi_20241215180301.csDrApi_20241215180302.csDrApi_20241215180317.csDrApi_20241215180321.csDrApi_20241215180626.csDrApi_20241215180732.csDrApi_20241215180733.csDrApi_20241215180756.csDrApi_20241215180757.csDrApi_20241215180806.csDrApi_20241215180807.csDrApi_20241215180817.csDrApi_20241215180818.csDrApi_20241215181209.csDrApi_20241215181210.csDrApi_20241215181214.csDrApi_20241216222031.csHTTP_20241215174639.csHTTP_20241215174731.csHTTP_20241215174805.csHTTP_20241215174806.csHTTP_20241215175422.csHTTP_20241215175457.csHTTP_20241215175503.csHTTP_20241215175544.csHTTP_20241215180404.csHTTP_20241215180405.csHTTP_20241215180410.csHTTP_20241215180645.csHTTP_20241215180655.csHTTP_20241215180712.csHTTP_20241215180849.csHTTP_20241215180850.csHTTP_20241215180902.csHTTP_20241215180913.csHTTP_20241215180914.csHTTP_20241215180926.csHTTP_20241215180927.csHTTP_20241215180954.csHTTP_20241215181122.csHTTP_20241215181123.csHTTP_20241215181258.csHTTP_20241215181259.csHTTP_20241215181634.csHTTP_20241215181635.csHTTP_20241215181645.csHTTP_20241215181706.csHTTP_20241215181725.csHTTP_20241215181742.csHTTP_20241215181753.csHTTP_20241216222047.csHTTP_20241216222140.csHTTP_20241216222146.csHttpHelper_20241215182118.csHttpHelper_20241215182128.csHttpHelper_20241215182414.csProgram_20241215144638.csProgram_20241215174838.csProgram_20241215174853.csProgram_20241215174910.csProgram_20241215175107.csProgram_20241215175108.csProgram_20241215175127.csProgram_20241215175128.csProgram_20241215175136.csProgram_20241215175308.csProgram_20241215175309.csProgram_20241215175339.csProgram_20241215175340.csProgram_20241215175427.csProgram_20241215175520.csProgram_20241215175559.csProgram_20241215175944.csProgram_20241215175945.csProgram_20241215175948.csProgram_20241215175949.csProgram_20241215180415.csProgram_20241215180440.csProgram_20241215180455.csProgram_20241215180500.csProgram_20241215180529.csProgram_20241215180550.csProgram_20241215180604.csProgram_20241215180605.csProgram_20241215181412.csProgram_20241215181413.csProgram_20241215181423.cs

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.history
.vscode

View File

@ -1,9 +0,0 @@
class DrApi {
static void DrApi(string username, string password) {
}
}

View File

@ -1,9 +0,0 @@
class DrApi {
static void (string username, string password) {
}
}

View File

@ -1,9 +0,0 @@
class DrApi {
static void pony (string username, string password) {
}
}

View File

@ -1,17 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
static void get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
}
}

View File

@ -1,17 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
static void get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
static void get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
static string get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
static string get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response.ToString());
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
static string get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response.ToString());
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static string get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response.ToString());
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static string get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response.ToString());
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static string get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static string get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static string get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static Task<string> get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,18 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,19 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
return "";
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,19 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
return "";
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,20 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
return "";
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,20 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
return "";
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,19 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,19 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,20 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
Console.writeLine("AFTER GET");
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,20 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
Console.writeLine("AFTER GET");
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,20 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url);
Console.WriteLine("AFTER GET");
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.InnerText);
}
return null;
}
}

View File

@ -1,25 +0,0 @@
using HtmlAgilityPack;
using System;
using System.Linq;
class DrApi {
public static async Task<string> get_rants (string url) {
string response = await HTTP.get(url).ConfigureAwait(false);;
HtmlDocument doc = new HtmlDocument();
doc.LoadHtml(response);
var nodes = doc.DocumentNode.SelectNodes("//a");
//var nodes = doc.DocumentNode.SelectNodes("//a[contains(@class,'rantlist-content-col')");
//var nodes = doc.DocumentNode.SelectNodes("//div[contains(@class, 'rant-comment-row-widget')]");
foreach (var node in nodes) {
Console.WriteLine(node.GetAttributeValue("class","None"));
if(node.GetAttributeValue("class","None") == "rantlist-bglink"){
Console.WriteLine(node.InnerText);
}
}
return null;
}
}

View File

@ -1,34 +0,0 @@
// The URL of the API or website you want to make a request to
string http_get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
}

View File

@ -1,38 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
string http_get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
}

View File

@ -1,38 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
string http_get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
}

View File

@ -1,39 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
string http_get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static string http_get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
}
}

View File

@ -1,42 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
// Create an instance of HttpClient
using (HttpClient client = new HttpClient())
{
try
{
// Send a GET request to the specified URL
HttpResponseMessage response = await client.GetAsync(url);
// Check if the response is successful (status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string
string responseData = await response.Content.ReadAsStringAsync();
// Print the response to the console
Console.WriteLine(responseData);
return responseData;
}
else
{
// Handle the error if the status code is not successful
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
// Handle any exceptions (e.g., network errors)
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,35 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseData);
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,35 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseData);
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,33 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,33 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,33 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async string get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,33 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,35 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
Console.writeLine("SUCCESS\n");
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,35 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
Console.writeLine("SUCCESS\n");
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,35 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
Console.WriteLine("SUCCESS\n");
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,36 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
Console.WriteLine("SUCCESS\n");
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,36 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
Console.WriteLine("SUCCESS\n");
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,36 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,36 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,38 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
public static async Task<string> get(string url){
using (HttpClient client = new HttpClient())
{
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
}
return null;
}
}

View File

@ -1,39 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient();
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,39 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient();
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = client.GET(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = client.GET(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = client.Get(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return "";
}
}

View File

@ -1,41 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10) // Set a timeout to avoid hanging
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync();
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return "zzz";
}
}

View File

@ -1,42 +0,0 @@
// The URL of the API or website you want to make a request to
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10)
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);;
return responseData;
}
else
{
Console.WriteLine("Error: " + response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine("Exception occurred: " + ex.Message);
}
return "zzz";
}
}

View File

@ -1,40 +0,0 @@
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10)
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);;
return responseData;
}
else
{
Console.WriteLine(response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return null;
}
}

View File

@ -1,40 +0,0 @@
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
static class HTTP {
private static readonly HttpClient client = new HttpClient(){
Timeout = TimeSpan.FromSeconds(10)
};
public static async Task<string> get(string url){
try
{
Console.WriteLine("SUCCESS\n " + url);
HttpResponseMessage response = await client.GetAsync(url,HttpCompletionOption.ResponseHeadersRead).ConfigureAwait(false);
Console.WriteLine("SUCCESS3\n " + url);
if (response.IsSuccessStatusCode)
{
string responseData = await response.Content.ReadAsStringAsync().ConfigureAwait(false);;
return responseData;
}
else
{
Console.WriteLine(response.StatusCode);
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
return null;
}
}

View File

@ -1,41 +0,0 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
public class HttpHelper
{
// Reuse a static HttpClient for the entire application to prevent socket exhaustion
private static readonly HttpClient client = new HttpClient()
{
Timeout = TimeSpan.FromSeconds(10) // Set a timeout for the HTTP request
};
// Function to get the content of the URL
public static async Task<string> GetContentsAsync(string url)
{
try
{
// Send an HTTP GET request
HttpResponseMessage response = await client.GetAsync(url);
// Check if the request was successful (HTTP status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string and return it
string content = await response.Content.ReadAsStringAsync();
return content;
}
else
{
Console.WriteLine($"Error: {response.StatusCode}");
}
}
catch (Exception ex)
{
// Handle exceptions (e.g., network issues, invalid URLs)
Console.WriteLine($"Exception: {ex.Message}");
}
return null;
}
}

View File

@ -1,42 +0,0 @@
using System;
using System.Net.Http;
using System.Threading.Tasks;
public class HttpHelper
{
// Reuse a static HttpClient for the entire application to prevent socket exhaustion
private static readonly HttpClient client = new HttpClient()
{
Timeout = TimeSpan.FromSeconds(10) // Set a timeout for the HTTP request
};
// Function to get the content of the URL
public static async Task<string> GetContentsAsync(string url)
{
try
{
// Send an HTTP GET request
HttpResponseMessage response = await client.GetAsync(url);
// Check if the request was successful (HTTP status code 200)
if (response.IsSuccessStatusCode)
{
// Read the response content as a string and return it
string content = await response.Content.ReadAsStringAsync();
Console.WriteLine(content);
return content;
}
else
{
Console.WriteLine($"Error: {response.StatusCode}");
}
}
catch (Exception ex)
{
// Handle exceptions (e.g., network issues, invalid URLs)
Console.WriteLine($"Exception: {ex.Message}");
}
return null;
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
http_get("https://devrant.com/feed/recent")
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Connsole.WriteLine(http_get("https://devrant.com/feed/recent"))
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Connsole.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Program(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void Program(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
public static class Program {
static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
public static class Program {
static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
public static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
class Program {
public static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(http_get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(HTTP.get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(HTTP.get("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(devrant.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(devrant.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static void Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
public static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,18 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,19 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine("DID TASK\n");
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
window.ShowAll();
Application.Run();
}
}

View File

@ -1,21 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine("DID TASK\n");
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
Console.WriteLine("DID TASK2\n");
window.ShowAll();
Application.Run();
}
}

View File

@ -1,21 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine("DID TASK\n");
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent"));
Console.WriteLine("DID TASK2\n");
window.ShowAll();
Application.Run();
}
}

View File

@ -1,21 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine("DID TASK\n");
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent/"));
Console.WriteLine("DID TASK2\n");
window.ShowAll();
Application.Run();
}
}

View File

@ -1,21 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine("DID TASK\n");
Console.WriteLine(await DrApi.get_rants("https://devrant.com/feed/recent/"));
Console.WriteLine("DID TASK2\n");
window.ShowAll();
Application.Run();
}
}

View File

@ -1,21 +0,0 @@
// See https://aka.ms/new-console-template for more information
using Gtk;
partial class Program {
static async Task Main(string[] args){
Application.Init();
var window = new Window("My TEst");
window.SetDefaultSize(320,240);
window.DeleteEvent += (o,e) => Application.Quit();
Console.WriteLine("DID TASK\n");
Console.WriteLine(await DrApi.get_rants("https://www.google.nl"));
Console.WriteLine("DID TASK2\n");
window.ShowAll();
Application.Run();
}
}

Some files were not shown because too many files have changed in this diff Show More