FIRIAMMessageRenderData.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FirebaseInAppMessaging/Sources/Private/Data/FIRIAMRenderingEffectSetting.h"
  18. @protocol FIRIAMMessageContentData;
  19. NS_ASSUME_NONNULL_BEGIN
  20. // This wraps the data that's needed for render the message's content in UI. It also contains
  21. // certain meta data that's needed in responding to user's action
  22. @interface FIRIAMMessageRenderData : NSObject
  23. @property(nonatomic, nonnull, readonly) id<FIRIAMMessageContentData> contentData;
  24. @property(nonatomic, nonnull, readonly) FIRIAMRenderingEffectSetting *renderingEffectSettings;
  25. @property(nonatomic, nonnull, copy, readonly) NSString *messageID;
  26. @property(nonatomic, nonnull, copy, readonly) NSString *name;
  27. - (instancetype)init NS_UNAVAILABLE;
  28. - (instancetype)initWithMessageID:(NSString *)messageID
  29. messageName:(NSString *)messageName
  30. contentData:(id<FIRIAMMessageContentData>)contentData
  31. renderingEffect:(FIRIAMRenderingEffectSetting *)renderEffect;
  32. @end
  33. NS_ASSUME_NONNULL_END