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