ditch silver meddlists stuff, adapt to my own namespace
This commit is contained in:
parent
be6ddf26fd
commit
c84dcc353a
@ -1,11 +1,10 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<PackageId>silvermeddlists.franz</PackageId>
|
<PackageId>AdamRGrey.franz</PackageId>
|
||||||
<Version>0.0.9</Version>
|
<Version>1.0.0</Version>
|
||||||
<Authors>adam</Authors>
|
<Authors>Adam R Grey</Authors>
|
||||||
<Company>Silver Meddlists</Company>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -6,6 +6,7 @@ using Newtonsoft.Json;
|
|||||||
|
|
||||||
namespace silver_messages
|
namespace silver_messages
|
||||||
{
|
{
|
||||||
|
//protip: you can derive from message and I'll dispatch it back to you just as you would expect
|
||||||
public abstract class message : IMemorySerializable
|
public abstract class message : IMemorySerializable
|
||||||
{
|
{
|
||||||
public string type { get { return this.GetType().ToString(); } }
|
public string type { get { return this.GetType().ToString(); } }
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using silver_messages;
|
|
||||||
namespace silver_messages.youtube
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* for all the scheduled, not-yet released videos, what required metadata
|
|
||||||
* do they need
|
|
||||||
*/
|
|
||||||
public class metadata_needed : silver_messages.message
|
|
||||||
{
|
|
||||||
//key is a yt id
|
|
||||||
public Dictionary<string, yt_metadata> needed{get;set;} = new Dictionary<string, yt_metadata>();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using silver_messages;
|
|
||||||
namespace silver_messages.youtube
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* check all the scheduled, not-yet released videos for required metadata.
|
|
||||||
* respond with a metadata_needed - empty if none.
|
|
||||||
*/
|
|
||||||
public class request_metadata_needed : silver_messages.message { }
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using silver_messages;
|
|
||||||
namespace silver_messages.youtube
|
|
||||||
{
|
|
||||||
/*
|
|
||||||
* someone will send as much metadata as they have - set non-null fields to the provided values
|
|
||||||
*/
|
|
||||||
public class update_metadata : silver_messages.message
|
|
||||||
{
|
|
||||||
public string yt_id { get; set; }
|
|
||||||
public yt_metadata metadata { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,15 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using silver_messages;
|
|
||||||
namespace silver_messages.youtube
|
|
||||||
{
|
|
||||||
/** if you receive this, start the upload (of filename with metadata)
|
|
||||||
* and then respond with an upload_started
|
|
||||||
*/
|
|
||||||
public class upload : silver_messages.message
|
|
||||||
{
|
|
||||||
public string filename { get; set; }
|
|
||||||
public yt_metadata metadata { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,12 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.IO;
|
|
||||||
using silver_messages;
|
|
||||||
namespace silver_messages.youtube
|
|
||||||
{
|
|
||||||
public class upload_started : silver_messages.message
|
|
||||||
{
|
|
||||||
public string filename { get; set; }
|
|
||||||
public string yt_id { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,17 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using silver_messages;
|
|
||||||
namespace silver_messages.youtube
|
|
||||||
{
|
|
||||||
public class yt_metadata
|
|
||||||
{
|
|
||||||
//not including (part _)
|
|
||||||
public string title { get; set; }
|
|
||||||
public DateTime? release { get; set; }
|
|
||||||
public DateTime? recording { get; set; }
|
|
||||||
//name of the YT playlist to add this to
|
|
||||||
public string playlist { get; set; }
|
|
||||||
//my path to the thumbnail - meaning it will need the number stamped some other way
|
|
||||||
public string thumbnail { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user