省钱达人

WXMediaMessage+messageConstruct.m 936B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // WXMediaMessage+messageConstruct.m
  3. // SDKSample
  4. //
  5. // Created by Jeason on 15/7/14.
  6. //
  7. //
  8. #import "WXMediaMessage+messageConstruct.h"
  9. @implementation WXMediaMessage (messageConstruct)
  10. + (WXMediaMessage *)messageWithTitle:(NSString *)title
  11. Description:(NSString *)description
  12. Object:(id)mediaObject
  13. MessageExt:(NSString *)messageExt
  14. MessageAction:(NSString *)action
  15. ThumbImage:(UIImage *)thumbImage
  16. MediaTag:(NSString *)tagName {
  17. WXMediaMessage *message = [WXMediaMessage message];
  18. message.title = title;
  19. message.description = description;
  20. message.mediaObject = mediaObject;
  21. message.messageExt = messageExt;
  22. message.messageAction = action;
  23. message.mediaTagName = tagName;
  24. [message setThumbImage:thumbImage];
  25. return message;
  26. }
  27. @end