ShareSDKImpl.cs 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // This code was generated by a tool.
  4. // Runtime Version:4.0.30319.18408
  5. //
  6. // Changes to this file may cause incorrect behavior and will be lost if
  7. // the code is regenerated.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. using System;
  11. using System.Collections;
  12. namespace cn.sharesdk.unity3d{
  13. public abstract class ShareSDKImpl{
  14. /// <summary>
  15. /// Init the ShareSDK.
  16. /// </summary>
  17. public abstract void InitSDK (String appKey);
  18. public abstract void InitSDK (String appKey,String screct);
  19. /// <summary>
  20. /// Sets the platform config.
  21. /// </summary>
  22. public abstract void SetPlatformConfig (Hashtable configs);
  23. /// <summary>
  24. /// Authorize the specified platform.
  25. /// </summary>
  26. public abstract void Authorize (int reqID, PlatformType platform);
  27. /// <summary>
  28. /// Removes the account of the specified platform.
  29. /// </summary>
  30. public abstract void CancelAuthorize (PlatformType platform);
  31. /// <summary>
  32. /// Determine weather the account of the specified platform is valid.
  33. /// </summary>
  34. public abstract bool IsAuthorized (PlatformType platform);
  35. /// <summary>
  36. /// Determine weather the APP-Client of platform is valid.
  37. /// </summary>
  38. public abstract bool IsClientValid (PlatformType platform);
  39. /// <summary>
  40. /// Request the user info of the specified platform.
  41. /// </summary>
  42. public abstract void GetUserInfo (int reqID, PlatformType platform);
  43. /// <summary>
  44. /// Share the content to the specified platform with api.
  45. /// </summary>
  46. public abstract void ShareContent (int reqID, PlatformType platform, ShareContent content);
  47. /// <summary>
  48. /// Share the content to the specified platform with api.
  49. /// </summary>
  50. public abstract void ShareContent (int reqID, PlatformType[] platforms, ShareContent content);
  51. /// <summary>
  52. /// Show the platform list to share.
  53. /// </summary>
  54. public abstract void ShowPlatformList (int reqID, PlatformType[] platforms, ShareContent content, int x, int y);
  55. /// <summary>
  56. /// OGUI share to the specified platform.
  57. /// </summary>
  58. public abstract void ShowShareContentEditor (int reqID, PlatformType platform, ShareContent content);
  59. /// <summary>
  60. /// share according to the name of node<Content> in ShareContent.xml(in ShareSDKConfigFile.bunle,you can find it in xcode - ShareSDK folider) [only valid in iOS temporarily)]
  61. /// </summary>
  62. public abstract void ShareWithContentName (int reqId, PlatformType platform, string contentName, Hashtable customFields);
  63. /// <summary>
  64. /// show share platform list according to the name of node<Content> in ShareContent.xml file(in ShareSDKConfigFile.bunle,you can find it in xcode - ShareSDK folider) [only valid in iOS temporarily)]
  65. /// </summary>
  66. public abstract void ShowPlatformListWithContentName (int reqId, string contentName, Hashtable customFields, PlatformType[] platforms, int x, int y);
  67. /// <summary>
  68. /// show share content editor according to the name of node<Content> in ShareContent.xml file(in ShareSDKConfigFile.bunle,you can find it in xcode - ShareSDK folider) [only valid in iOS temporarily)]
  69. /// </summary>
  70. public abstract void ShowShareContentEditorWithContentName (int reqId, PlatformType platform, string contentName, Hashtable customFields);
  71. /// <summary>
  72. /// Gets the friend list.
  73. /// </summary>
  74. public abstract void GetFriendList (int reqID, PlatformType platform, int count, int page);
  75. /// <summary>
  76. /// Follows the friend.
  77. /// </summary>
  78. public abstract void AddFriend (int reqID, PlatformType platform, String account);
  79. /// <summary>
  80. /// Gets the auth info.
  81. /// </summary>
  82. public abstract Hashtable GetAuthInfo (PlatformType platform);
  83. /// <summary>
  84. /// the setting of SSO
  85. /// </summary>
  86. public abstract void DisableSSO (Boolean disable);
  87. }
  88. }