| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- #import <Foundation/Foundation.h>
- NS_ASSUME_NONNULL_BEGIN
- @interface ZMVideoSDKDialInNumberInfo : NSObject
- /**
- @brief The country ID of the current information.
- */
- @property (nonatomic, copy, readonly) NSString* countryID;
- /**
- @brief The country code of the current information.
- */
- @property (nonatomic, copy, readonly) NSString* countryCode;
- /**
- @brief The country name of the current information.
- */
- @property (nonatomic, copy, readonly) NSString* countryName;
- /**
- @brief The country number.
- */
- @property (nonatomic, copy, readonly) NSString* number;
- /**
- @brief The display number.
- */
- @property (nonatomic, copy, readonly) NSString* displayNumber;
- /**
- @brief The type of dial in number.
- */
- @property (nonatomic, assign, readonly) ZMVideoSDKDialInNumType type;
- @end
- @interface ZMVideoSDKPhoneSupportCountryInfo : NSObject
- /**
- @brief The country ID of the current information.
- */
- @property (nonatomic, copy, readonly) NSString* countryID;
- /**
- @brief The country name of the current information.
- */
- @property (nonatomic, copy, readonly) NSString* countryName;
- /**
- @brief The country code of the current information.
- */
- @property (nonatomic, copy, readonly) NSString* countryCode;
- @end
- @interface ZMVideoSDKPhoneHelper : NSObject
- /**
- @brief Determine if the session supports join by phone or not.
- @return YES indicates join by phone is supported, otherwise NO.
- */
- - (BOOL)isSupportPhoneFeature;
- /**
- @brief Get the list of the country information where the session supports to join by telephone.
- @return If the function succeeds, the return value is the array of the country information, otherwise returns nil.
- */
- - (NSArray<ZMVideoSDKPhoneSupportCountryInfo*>*)getSupportCountryInfo;
- /**
- @brief Invite the specified user to join the session by phone.
- @param countryCode The country code of the specified user must be in the support list.
- @param phoneNumber The phone number of specified user.
- @param name The screen name of the specified user in the session.
- @return If the function succeeds, the return value is ZMVideoSDKErrors_Success, otherwise not.
- */
- - (ZMVideoSDKErrors)inviteByPhone:(NSString*)countryCode phoneNumber:(NSString*)phoneNumber name:(NSString*)name;
- /**
- @brief Cancel the invitation that is being called out by phone.
- @return If the function succeeds, the return value is ZMVideoSDKErrors_Success, otherwise not.
- */
- - (ZMVideoSDKErrors)cancelInviteByPhone;
- /**
- @brief Get the status of the invitation by phone.
- @return If the function succeeds, the method returns the ZMPhoneStatus of the invitation by phone. To get extended error information, see {@link ZMPhoneStatus}.
- */
- - (ZMPhoneStatus)getInviteByPhoneStatus;
- /**
- @brief Get the list of dial in numbers supported by session.
- @return If the function succeeds, the return value is the list of the call-in numbers. Otherwise failed. For more details, see {@link ZMVideoSDKDialInNumberInfo}.
- */
- - (NSArray<ZMVideoSDKDialInNumberInfo *>*)getSessionDialInNumbers;
- @end
- NS_ASSUME_NONNULL_END
|