This commit is contained in:
watrabi
2025-09-18 17:55:52 -04:00
commit 977f1ff4b8
15030 changed files with 17324420 additions and 0 deletions
@@ -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; } }
}
}