CefValueWrapper.cs 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. namespace Xilium.CefGlue.Common.Shared.Serialization
  2. {
  3. internal abstract class CefValueWrapper
  4. {
  5. public abstract void SetNull();
  6. public abstract void SetBool(bool value);
  7. public abstract void SetInt(int value);
  8. public abstract void SetDouble(double value);
  9. public abstract void SetString(string value);
  10. public abstract void SetBinary(ICefBinaryValue value);
  11. public abstract void SetList(ICefListValue value);
  12. public abstract void SetDictionary(ICefDictionaryValue value);
  13. public abstract bool GetBool();
  14. public abstract int GetInt();
  15. public abstract double GetDouble();
  16. public abstract string GetString();
  17. public abstract ICefBinaryValue GetBinary();
  18. public abstract ICefListValue GetList();
  19. public abstract ICefDictionaryValue GetDictionary();
  20. public abstract CefValueType GetValueType();
  21. }
  22. internal abstract class CefValueWrapper<TIndex, TCefContainerUnderlyingType> : CefValueWrapper
  23. {
  24. protected readonly TIndex _index;
  25. protected readonly TCefContainerUnderlyingType _container;
  26. public CefValueWrapper(TCefContainerUnderlyingType container, TIndex index)
  27. {
  28. _index = index;
  29. _container = container;
  30. }
  31. }
  32. }