两折卖----返利app-----返利圈

SendMessageToWXReq+requestWithTextOrMediaMessage.m 698B

12345678910111213141516171819202122232425262728
  1. //
  2. // SendMessageToWXReq+requestWithTextOrMediaMessage.m
  3. // SDKSample
  4. //
  5. // Created by Jeason on 15/7/14.
  6. //
  7. //
  8. #import "SendMessageToWXReq+requestWithTextOrMediaMessage.h"
  9. @implementation SendMessageToWXReq (requestWithTextOrMediaMessage)
  10. + (SendMessageToWXReq *)requestWithText:(NSString *)text
  11. OrMediaMessage:(WXMediaMessage *)message
  12. bText:(BOOL)bText
  13. InScene:(enum WXScene)scene {
  14. SendMessageToWXReq *req = [[SendMessageToWXReq alloc] init];
  15. req.bText = bText;
  16. req.scene = scene;
  17. if (bText)
  18. req.text = text;
  19. else
  20. req.message = message;
  21. return req;
  22. }
  23. @end