Made API models internal. Removed Discord.Net.API.

This commit is contained in:
RogueException
2017-01-01 23:28:42 -04:00
parent dac51db299
commit e2934abe29
244 changed files with 641 additions and 473 deletions

View File

@@ -0,0 +1,31 @@
namespace Discord.Rpc
{
internal static class EntityExtensions
{
public static API.Rpc.Pan ToModel(this Pan entity)
{
return new API.Rpc.Pan
{
Left = entity.Left,
Right = entity.Right
};
}
public static API.Rpc.VoiceDevice ToModel(this VoiceDevice entity)
{
return new API.Rpc.VoiceDevice
{
Id = entity.Id,
Name = entity.Name
};
}
public static API.Rpc.VoiceShortcut ToModel(this VoiceShortcut entity)
{
return new API.Rpc.VoiceShortcut
{
Code = entity.Code,
Name = entity.Name,
Type = entity.Type
};
}
}
}