ditch silver meddlists stuff, adapt to my own namespace

This commit is contained in:
Adam R Grey 2022-01-26 22:30:21 -05:00
parent be6ddf26fd
commit c84dcc353a
8 changed files with 5 additions and 92 deletions

View File

@ -1,11 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<PackageId>silvermeddlists.franz</PackageId>
<Version>0.0.9</Version>
<Authors>adam</Authors>
<Company>Silver Meddlists</Company>
<TargetFramework>net6.0</TargetFramework>
<PackageId>AdamRGrey.franz</PackageId>
<Version>1.0.0</Version>
<Authors>Adam R Grey</Authors>
</PropertyGroup>
<ItemGroup>

View File

@ -6,6 +6,7 @@ using Newtonsoft.Json;
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 string type { get { return this.GetType().ToString(); } }

View File

@ -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>();
}
}

View File

@ -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 { }
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}