ILJRequest.cs 354 B

1234567891011121314151617
  1. 
  2. namespace LJLib.Net.SPI.Com
  3. {
  4. public interface ILJRequest
  5. {
  6. string GetApiName();
  7. }
  8. public abstract class LJRequest: ILJRequest
  9. {
  10. public string GetApiName()
  11. {
  12. var typeName = this.GetType().Name;
  13. return typeName.Substring(0, typeName.Length - 7);
  14. }
  15. }
  16. }