You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

EntityExtensions.cs 814 B

12345678910111213141516171819202122232425262728293031
  1. namespace Discord.Rpc
  2. {
  3. internal static class EntityExtensions
  4. {
  5. public static API.Rpc.Pan ToModel(this Pan entity)
  6. {
  7. return new API.Rpc.Pan
  8. {
  9. Left = entity.Left,
  10. Right = entity.Right
  11. };
  12. }
  13. public static API.Rpc.VoiceDevice ToModel(this VoiceDevice entity)
  14. {
  15. return new API.Rpc.VoiceDevice
  16. {
  17. Id = entity.Id,
  18. Name = entity.Name
  19. };
  20. }
  21. public static API.Rpc.VoiceShortcut ToModel(this VoiceShortcut entity)
  22. {
  23. return new API.Rpc.VoiceShortcut
  24. {
  25. Code = entity.Code,
  26. Name = entity.Name,
  27. Type = entity.Type
  28. };
  29. }
  30. }
  31. }