Skip to content

V0.0.8 - Removed Disposable

Compare
Choose a tag to compare
@liebki liebki released this 02 Jan 20:15
· 8 commits to master since this release
7d3b23a

Servus, today mostly only internal changes nothing really new or breaking, except:

  • RawgClient can't longer be used with using (example down below)
  • QueryType moved to Models
  • More comments
  • Renamed the APIKEY field to Key in ClientOptions

That's basically all for the Commit

Edited example (from last release) down below (old then new):

Getting a creator (old, with disposable):

using (RawgClient client = new(new ClientOptions("YOUR KEY FROM https://rawg.io/login?forward=developer")))
{
	string creatorid = "123";
	Creator cr = await client.GetCreator(creatorid);

	Console.WriteLine(cr.ToString());
}

Getting a creator (new, without disposable):

RawgClient client = new(new ClientOptions("YOUR KEY FROM https://rawg.io/login?forward=developer"));
string creatorid = "123";

Creator cr = await client.GetCreator(creatorid);
Console.WriteLine(cr.ToString());

Bye.