mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 13:57:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace Roblox.RSS;
|
||||
|
||||
public class CustomImage : IImage
|
||||
{
|
||||
private string url;
|
||||
|
||||
private int width;
|
||||
|
||||
private int height;
|
||||
|
||||
public string Url => url;
|
||||
|
||||
public int Width => width;
|
||||
|
||||
public int Height => height;
|
||||
|
||||
public CustomImage(string url, int width, int height)
|
||||
{
|
||||
this.url = url;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Roblox.RSS;
|
||||
|
||||
public interface IChannel
|
||||
{
|
||||
string Title { get; }
|
||||
|
||||
string Description { get; }
|
||||
|
||||
IImage Image { get; }
|
||||
|
||||
bool Complete { get; }
|
||||
|
||||
IEnumerable<IItem> GetItems();
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace Roblox.RSS;
|
||||
|
||||
public interface IImage
|
||||
{
|
||||
int Width { get; }
|
||||
|
||||
int Height { get; }
|
||||
|
||||
string Url { get; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
|
||||
namespace Roblox.RSS;
|
||||
|
||||
public interface IItem
|
||||
{
|
||||
string Title { get; }
|
||||
|
||||
DateTime PubDate { get; }
|
||||
|
||||
string Description { get; }
|
||||
|
||||
string Link { get; }
|
||||
|
||||
IImage Image { get; }
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace Roblox.RSS;
|
||||
|
||||
public class StandardFeedImage : IImage
|
||||
{
|
||||
private string url;
|
||||
|
||||
public int Width => 118;
|
||||
|
||||
public int Height => 31;
|
||||
|
||||
public string Url => url;
|
||||
|
||||
public StandardFeedImage(string url)
|
||||
{
|
||||
this.url = url;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user