NetEngine
@interface NetEngine : NSObject
网络请求引擎,处理网络数据加载
-
Undocumented
Declaration
Objective-C
@property (nonatomic, retain) id lbsSwift
var lbs: Any! { get set } -
取消request请求 *
- - returns: 引擎单例
Declaration
Objective-C
+ (NetEngine *)sharedInstance;Swift
class func sharedInstance() -> NetEngine! -
取消request请求 *
- - parameter: del 取消属于该对象的request
Declaration
Objective-C
- (void)cancelRequestInDelegate:(id)del;Swift
func cancelRequest(inDelegate del: Any!) -
取消所有的request请求 *
Declaration
Objective-C
- (void)cancelAllRequest;Swift
func cancelAllRequest() -
清理缓存 *
Declaration
Objective-C
- (void)clearCache;Swift
func clearCache() -
Undocumented
Declaration
Objective-C
@property(nonatomic,retain) NSArray * galleryArraySwift
var galleryArray: [Any]! { get set }
-
Undocumented
Declaration
Objective-C
- (dispatch_queue_t)concurrentQueue;Swift
func concurrentQueue() -> DispatchQueue! -
Undocumented
Declaration
Objective-C
-(NSString *)appId;Swift
func appId() -> String! -
Undocumented
Declaration
Objective-C
-(NSString *)packageId;Swift
func packageId() -> String! -
Undocumented
Declaration
Objective-C
-(NSString *)userId;Swift
func userId() -> String! -
Undocumented
Declaration
Objective-C
-(void)v2newsQueryFirstPartsWithDel:(id)del sel:(SEL)sel;Swift
func v2newsQueryFirstParts(withDel del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)v2newsQueryTwoPartsWithParentId:(NSString *)parentId del:(id)del sel:(SEL)sel;Swift
func v2newsQueryTwoParts(withParentId parentId: String!, del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)v2newsQueryFirstPageWithParentId:(NSString *)parentId del:(id)del sel:(SEL)sel;Swift
func v2newsQueryFirstPage(withParentId parentId: String!, del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)v2newsQueryPartsWithPartId:(NSString *)partId parentId:(NSString *)parentId count:(NSUInteger)cnt dateTime:(NSString *)datetime newOrOld:(NewOrOld)eVal modifyTime:(NSString *)modifyTime del:(id)del sel:(SEL)sel;Swift
func v2newsQueryParts(withPartId partId: String!, parentId: String!, count cnt: UInt, dateTime datetime: String!, newOrOld eVal: NewOrOld, modifyTime: String!, del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
- (void)getNewsDetailWithNewsID:(NSString *)newsID del:(id)delegate sel:(SEL)sel isShowImage:(NSString *)isShow;Swift
func getNewsDetail(withNewsID newsID: String!, del delegate: Any!, sel: Selector!, isShowImage isShow: String!) -
获取列表和卡片式新闻详情页html地址
Declaration
Objective-C
- (void)getNewsDetailWithNewsDetailURL:(NSString *)newsDetailURL del:(id)delegate sel:(SEL)sel isShowImage:(NSString *)isShow;Swift
func getNewsDetail(withNewsDetailURL newsDetailURL: String!, del delegate: Any!, sel: Selector!, isShowImage isShow: String!)Parameters
newsDetailURL新闻地址
delegatedelegate
sel回调函数
isShow是否显示图片
-
Undocumented
Declaration
Objective-C
- (void)newsPraisesAndStepWithAppId:(NSString *)appId userID:(NSString *)userId newsId:(NSString *)newsId type:(NSString *)type userName:(NSString *)userName accountType:(NSString *)accountType del:(id)delegate sel:(SEL)sel;Swift
func newsPraisesAndStep(withAppId appId: String!, userID userId: String!, newsId: String!, type: String!, userName: String!, accountType: String!, del delegate: Any!, sel: Selector!)
-
获取广告
Declaration
Objective-C
- (void)adGetBiddingADWithProductType:(AdType)productType adNumber:(NSUInteger)adNum del:(id)del sel:(SEL)sel;Swift
func adGetBiddingAD(withProductType productType: AdType, adNumber adNum: UInt, del: Any!, sel: Selector!)Parameters
productType广告类型
adNum广告数,只有轮播广告需要传值
del委托
sel回调方法
-
广告统计
Declaration
Objective-C
- (void)adActivateADWithProductType:(AdType)productType AdId:(NSString *)adId activateType:(AdActiveType)activateType authorId:(NSString *)authorId del:(id)del sel:(SEL)sel;Swift
func adActivateAD(withProductType productType: AdType, adId: String!, activate activateType: AdActiveType, authorId: String!, del: Any!, sel: Selector!)Parameters
productType广告类型
adId广告id
activateType广告触发类型
del委托
sel回调方法
-
获取金币账户概要信息
Declaration
Objective-C
- (void)goldGetSummaryWithOwnerId:(NSString *)userId del:(id)del sel:(SEL)sel;Swift
func goldGetSummary(withOwnerId userId: String!, del: Any!, sel: Selector!)Parameters
userId账户Id
del委托
sel回调方法
-
获取收益排行
Declaration
Objective-C
- (void)goldGetIncomeRankWithFromIndex:(NSUInteger)fromIndex count:(NSUInteger)cnt del:(id)del sel:(SEL)sel;Swift
func goldGetIncomeRankWith(from fromIndex: UInt, count cnt: UInt, del: Any!, sel: Selector!)Parameters
fromIndex从排行榜的第几条开始,不传时取默认值0。
cnt要获取的条数,不传时取默认值20。
del委托
sel回调方法
-
获取余额及指定税目的费率
Declaration
Objective-C
- (void)goldGetBalanceAndRateWithTax:(NSUInteger)tax ownerId:(NSString *)userId del:(id)del sel:(SEL)sel;Swift
func goldGetBalanceAndRate(withTax tax: UInt, ownerId userId: String!, del: Any!, sel: Selector!)Parameters
tax税目编号。取值1表示转账;2表示提现。
userId用户ID,不传时取上下文中的用户ID。
del委托
sel回调方法
-
获取报纸首页信息
Declaration
Objective-C
- (void)newsQueryFirstPageTwoWithDel:(id)del sel:(SEL)sel;Swift
func newsQueryFirstPageTwo(withDel del: Any!, sel: Selector!)Parameters
appId应用的Id
del委托
sel回调方法
-
Undocumented
Declaration
Objective-C
-(void)newsQueryPartsTwoWithPartId:(NSString *)partId count:(NSUInteger)cnt dateTime:(NSString *)datetime newOrOld:(NewOrOld)eVal modifyTime:(NSString *)modifyTime del:(id)del sel:(SEL)sel;Swift
func newsQueryPartsTwo(withPartId partId: String!, count cnt: UInt, dateTime datetime: String!, newOrOld eVal: NewOrOld, modifyTime: String!, del: Any!, sel: Selector!) -
赞新闻
Declaration
Objective-C
- (void)newsAddPraisesWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func newsAddPraises(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻id
del委托
sel回调方法
-
取消赞
Declaration
Objective-C
- (void)newsRemovePraisesWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func newsRemovePraises(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻id
del委托
sel回调方法
-
查询是否被赞过
Declaration
Objective-C
- (void)newsQueryPraisesWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func newsQueryPraises(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻id
del委托
sel回调方法
-
查询新闻的附件信息: 比如音频和视频
Declaration
Objective-C
- (void)newsQueryNewsAttachmentWithId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func newsQueryNewsAttachment(withId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻Id
del委托
sel回调方法
-
查询用户赞+收藏数
Declaration
Objective-C
- (void)newsQueryPraisesAndFavoritesWithDel:(id)del sel:(SEL)sel userId:(NSString *)userId;Swift
func newsQueryPraisesAndFavorites(withDel del: Any!, sel: Selector!, userId: String!)Parameters
del委托
sel回调方法
-
通过新闻Id 获取作者
Declaration
Objective-C
- (void)newsGetAuthorsWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func newsGetAuthors(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻Id
del委托
sel回调方法
-
获取作者信息
Declaration
Objective-C
- (void)newsGetUserInfoWithId:(NSString *)userId del:(id)del sel:(SEL)sel;Swift
func newsGetUserInfo(withId userId: String!, del: Any!, sel: Selector!)Parameters
userId用户Id
del委托
sel回调方法
-
获取用户信息
Declaration
Objective-C
- (void)getUserInfoByUserId:(NSString *)userId del:(id)del sel:(SEL)sel;Swift
func getUserInfo(byUserId userId: String!, del: Any!, sel: Selector!)Parameters
userId用户Id
del委托
sel回调方法
-
Undocumented
Declaration
Objective-C
-(void)getUserExtendInfomationsdel:(id)del sel:(SEL)sel withUserID:(NSString *)userID currentUserId:(NSString *)currentId AppId:(NSString *)appID codes:(NSString *)codes;Swift
func getUserExtendInfomationsdel(_ del: Any!, sel: Selector!, withUserID userID: String!, currentUserId currentId: String!, appId appID: String!, codes: String!) -
更新用户扩展内容
Declaration
Objective-C
- (void)saveUserExtendInfodel:(id)del sel:(SEL)sel withUserExInfos:(NSArray *)exInfos;Swift
func saveUserExtendInfodel(_ del: Any!, sel: Selector!, withUserExInfos exInfos: [Any]!)Parameters
UserExInfos用户扩展信息集合
-
检测是否完善信息
Declaration
Objective-C
- (void)checkSetPersonInfosdel:(id)del sel:(SEL)sel userid:(NSString *)userID appid:(NSString *)appID;Swift
func checkSetPersonInfosdel(_ del: Any!, sel: Selector!, userid userID: String!, appid appID: String!)Parameters
appID应用id
userID用户id
-
Undocumented
Declaration
Objective-C
-(void)getUserInforMationsdel:(id)del sel:(SEL)sel withUserID:(NSString *)userID;Swift
func getUserInforMationsdel(_ del: Any!, sel: Selector!, withUserID userID: String!) -
更新用户信息
Declaration
Objective-C
- (void)updateUserInfoWithNickName:(NSString *)nickname WithSex:(int)sexNum WithBase64Photo:(NSString *)base64Photo WithPersonalized:(NSString *)personIntroduce del:(id)del sel:(SEL)sel withUserID:(NSString *)userID;Swift
func updateUserInfo(withNickName nickname: String!, withSex sexNum: Int32, withBase64Photo base64Photo: String!, withPersonalized personIntroduce: String!, del: Any!, sel: Selector!, withUserID userID: String!)Parameters
nickname用户昵称
sexNum用户性别编号
base64Photobase64 照片流
personIntroduce个性签名
del委托
sel回调方法
-
同步修改用户信息
Declaration
Objective-C
- (void)updateUserInfoWithKey:(NSString *)key andValue:(NSString *)value del:(id)del sel:(SEL)sel withEmployeeId:(NSString *)employeeId;Swift
func updateUserInfo(withKey key: String!, andValue value: String!, del: Any!, sel: Selector!, withEmployeeId employeeId: String!)Parameters
key<#key description#>
value<#value description#>
del<#del description#>
sel<#sel description#>
employeeId<#userID description#>
-
过appId 获取设置的自动回复
Declaration
Objective-C
- (void)newsGetAutoContentWithDel:(id)del sel:(SEL)sel;Swift
func newsGetAutoContent(withDel del: Any!, sel: Selector!)Parameters
del委托
sel回调方法
-
通过authorId 获取作者的新闻数据
Declaration
Objective-C
- (void)newsQueryNewsByAuthorId:(NSString *)authorId count:(NSUInteger)cnt dateTime:(NSString *)datetime newOrOld:(NewOrOld)eVal del:(id)del sel:(SEL)sel;Swift
func newsQueryNews(byAuthorId authorId: String!, count cnt: UInt, dateTime datetime: String!, newOrOld eVal: NewOrOld, del: Any!, sel: Selector!)Parameters
authorId作者Id
cnt新闻条数
datetime新闻时间 第一次加载数据时间为空,可不传值
isOld0表示新数据,1表示旧数据
del委托
sel回调方法
-
新闻内容同步数据
Declaration
Objective-C
- (void)newsGetSyncDataWithPartId:(NSString *)partId createTime:(NSString *)createTime modifyTime:(NSString *)modifyTime fetchCount:(NSUInteger)fetchCount del:(id)del sel:(SEL)sel;Swift
func newsGetSyncData(withPartId partId: String!, createTime: String!, modifyTime: String!, fetchCount: UInt, del: Any!, sel: Selector!)Parameters
partId栏目Id"
createTime新闻列表中最大新闻最大的CreateDate时间
modifyTime闻列表中新闻最大的ModifiedOn修改时间
fetchCount个数
del委托
sel回调方法
-
获取新闻详情数据
Declaration
Objective-C
- (void)phoneUserQueryNewsDetailsById:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func phoneUserQueryNewsDetails(byId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻I
del委托
sel回调方法
-
Undocumented
Declaration
Objective-C
-(void)newsSendCommentWithNewId:(NSString *)newsId content:(NSString *)content geographicInfo:(NSString *)geographicInfo location:(NSString *)location commentId:(NSString *)commentId del:(id)del sel:(SEL)sel;Swift
func newsSendComment(withNewId newsId: String!, content: String!, geographicInfo: String!, location: String!, commentId: String!, del: Any!, sel: Selector!)
-
获取独立App中新闻的评论 进入详情页面获取一条数据也是调用此接口,commentCount传值1就行
Declaration
Objective-C
- (void)cqQueryNewsCommentsWithNewsId:(NSString *)newsId dateTime:(NSString *)datetime commentCount:(NSUInteger)commentCount replyCount:(NSUInteger)replyCount newOrOld:(NewOrOld)eVal del:(id)del sel:(SEL)sel;Swift
func cqQueryNewsComments(withNewsId newsId: String!, dateTime datetime: String!, commentCount: UInt, replyCount: UInt, newOrOld eVal: NewOrOld, del: Any!, sel: Selector!)Parameters
newsId新闻id
datetime时间
commentCount评论数
replyCount回复个数
eVal新数据或者旧数据
del委托
sel回调方法
-
获取个人评论
Declaration
Objective-C
- (void)cqQueryAppUserCommentsExReplayWithFetchCount:(NSUInteger)fetchCount dateTime:(NSString *)datetime newOrOld:(NewOrOld)eVal del:(id)del sel:(SEL)sel;Swift
func cqQueryAppUserCommentsExReplay(withFetchCount fetchCount: UInt, dateTime datetime: String!, newOrOld eVal: NewOrOld, del: Any!, sel: Selector!)Parameters
fetchCount获取评论中多少条回复
datetime获取数据的时间点,第一次加载数据时间为空,可不传值,如果获取新数据,则取当前数据中CreatedDate最大值,如果获取旧数据,则取当前数据中CreatedDate的最小值
isOld0表示新数据,1表示旧数据
del委托
sel回调方法
-
检查版本更新
Declaration
Objective-C
- (void)checkVersionUpdateVersion:(NSString *)currentVersions del:(id)del sel:(SEL)sel;Swift
func checkVersionUpdateVersion(_ currentVersions: String!, del: Any!, sel: Selector!)Parameters
addIdappid
currentVersions版本信息
del委托
sel回调方法
-
发布者信息
Declaration
Objective-C
- (void)orgGetInfoBySubId:(NSString *)subId del:(id)del sel:(SEL)sel;Swift
func orgGetInfo(bySubId subId: String!, del: Any!, sel: Selector!)Parameters
subId用户id
del委托
sel回调方法
-
发布者信息
Declaration
Objective-C
- (void)orgGetInfoByOwnId:(NSString *)ownId del:(id)del sel:(SEL)sel withUserID:(NSString *)userID;Swift
func orgGetInfo(byOwnId ownId: String!, del: Any!, sel: Selector!, withUserID userID: String!)Parameters
ownId企业id
del委托
sel回调方法
-
设置用户头像
Declaration
Objective-C
- (void)umSetUserPhotoBase64:(NSString *)photoString del:(id)del sel:(SEL)sel withUserID:(NSString *)userID;Swift
func umSetUserPhotoBase64(_ photoString: String!, del: Any!, sel: Selector!, withUserID userID: String!)Parameters
photoString格式要求图片转换成base64string 类型
del委托
sel回调方法
-
Undocumented
Declaration
Objective-C
-(void)umSetUserPhoto:(NSString *)photoString del:(id)del sel:(SEL)sel withUserID:(NSString *)userID;Swift
func umSetUserPhoto(_ photoString: String!, del: Any!, sel: Selector!, withUserID userID: String!)
-
获取用户信息
Declaration
Objective-C
- (void)uqQueryAppUserInfoWithDel:(id)del sel:(SEL)sel;Swift
func uqQueryAppUserInfo(withDel del: Any!, sel: Selector!)Parameters
del委托
sel回调方法
-
获取独立App我的收藏
Declaration
Objective-C
- (void)fqGetAppFavoritesWithFetchCount:(NSUInteger)fetchCount dateTime:(NSString *)datetime newOrOld:(NewOrOld)eVal del:(id)del sel:(SEL)sel;Swift
func fqGetAppFavorites(withFetchCount fetchCount: UInt, dateTime datetime: String!, newOrOld eVal: NewOrOld, del: Any!, sel: Selector!)Parameters
fetchCount获取评论中多少条回复
datetime获取数据的时间点,第一次加载数据时间为空,可不传值,如果获取新数据,则取当前数据中CreatedDate最大值,如果获取旧数据,则取当前数据中CreatedDate的最小值
isOld0表示新数据,1表示旧数据
del委托
sel回调方法
-
添加独立App收藏
Declaration
Objective-C
- (void)fqAddAppFavoriteWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func fqAddAppFavorite(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻Id
del委托
sel回调方法
-
取消收藏
Declaration
Objective-C
- (void)fqRemoveAppFavoriteWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func fqRemoveAppFavorite(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻Id
del委托
sel回调方法
-
是否收藏过
Declaration
Objective-C
- (void)fqQueryFavoriteWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func fqQueryFavorite(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻Id
del委托
sel回调方法
-
Undocumented
Declaration
Objective-C
-(void)launchGetFaceAndStartImgWithDel:(id)del sel:(SEL)sel;Swift
func launchGetFaceAndStartImg(withDel del: Any!, sel: Selector!)
-
App应用的分享
Declaration
Objective-C
- (void)bpGetAppShareContentInfosWithDel:(id)del sel:(SEL)sel;Swift
func bpGetAppShareContentInfos(withDel del: Any!, sel: Selector!)Parameters
del委托
sel回调方法
-
新闻内容的分享 ,短地址
Declaration
Objective-C
- (void)shortUrlGenWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func shortUrlGen(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻Id
del委托
sel回调方法
-
Undocumented
Declaration
Objective-C
-(void)reportNewsWithNewsContent:(NSString *) Content newsId:(NSString *) newsId newsTitle:(NSString *) newsTitle del:(id)del sel:(SEL)sel;Swift
func reportNews(withNewsContent Content: String!, newsId: String!, newsTitle: String!, del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)shortUrlGenWithSourceUrl:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func shortUrlGen(withSourceUrl newsId: String!, del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)getAppOwnerTypeWiteDel:(id)del sel:(SEL)sel;Swift
func getAppOwnerTypeWiteDel(_ del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)gameGetNoPlayedWithDel:(id)del sel:(SEL)sel;Swift
func gameGetNoPlayed(withDel del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)readCountWithNewsIdPost:(NSString *) newsId del:(id)del sel:(SEL)sel;Swift
func readCount(withNewsIdPost newsId: String!, del: Any!, sel: Selector!) -
Undocumented
Declaration
Objective-C
-(void)searchResultWithKeyWord:(NSString *) keyWord del:(id)del sel:(SEL)sel;Swift
func searchResult(withKeyWord keyWord: String!, del: Any!, sel: Selector!) -
@brief 发送数据到服务器 - parameter: dic 数据源 - parameter: strUrl 拼接好的请求网址 - parameter: delegate 需要返回数据的代理 - parameter: selector 需要返回数据的方法体 @return 无Declaration
Objective-C
- (void)sendFormRequestWithDictionary:(NSDictionary *)dic url:(NSString *)strUrl delegate:(id)delegate selector:(SEL)selector;Swift
func sendFormRequest(with dic: [AnyHashable : Any]!, url strUrl: String!, delegate: Any!, selector: Selector!) -
Undocumented
Declaration
Objective-C
+(int)isExistenceNetwork;Swift
class func isExistenceNetwork() -> Int32 -
同步新闻数据
Declaration
Objective-C
- (void)getSyncDataWithPartId:(NSString *)partId createTime:(NSString *)createTime modifyTime:(NSString *)modifyTime fetchCount:(int)fetchCount del:(id)del sel:(SEL)sel;Swift
func getSyncData(withPartId partId: String!, createTime: String!, modifyTime: String!, fetchCount: Int32, del: Any!, sel: Selector!)Parameters
partId栏目id
createTime<#createTime description#>
modifyTime<#modifyTime description#>
fetchCount<#fetchCount description#>
del<#del description#>
sel<#sel description#>
-
获取获取卡片式首页
Declaration
Objective-C
- (void)v3getQueryFirstCarPageWithPartId:(NSString *)partId orderStatus:(int)orderStatus del:(id)del sel:(SEL)sel;Swift
func v3getQueryFirstCarPage(withPartId partId: String!, orderStatus: Int32, del: Any!, sel: Selector!)Parameters
partId一级栏目id
orderStatus2:图集 3:卡片
del代理
sel回调方法
-
获取卡片式和图集式的新闻列表
Declaration
Objective-C
- (void)v3newsQueryPartsWithPartId:(NSString *)partId parentId:(NSString *)parentId count:(NSUInteger)cnt dateTime:(NSString *)datetime newOrOld:(NewOrOld)eVal modifyTime:(NSString *)modifyTime type:(int)type del:(id)del sel:(SEL)sel;Swift
func v3newsQueryParts(withPartId partId: String!, parentId: String!, count cnt: UInt, dateTime datetime: String!, newOrOld eVal: NewOrOld, modifyTime: String!, type: Int32, del: Any!, sel: Selector!) -
获取图集图片列表以及推荐图集
Declaration
Objective-C
- (void)v3NewsQueryRecommendsWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func v3NewsQueryRecommends(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId图集新闻的新闻id
del代理
sel回调方法
-
-v3newsSendCommentInfoWithCommentId:content:geographicInfo:location:parentId:toUserId:voices:newsId:del:sel:3.0发送评论的接口
Declaration
Objective-C
- (void)v3newsSendCommentInfoWithCommentId:(NSString *)commentId content:(NSString *)content geographicInfo:(NSString *)geographicInfo location:(NSString *)location parentId:(NSString *)parentId toUserId:(NSString *)toUserId voices:(NSString *)voices newsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func v3newsSendCommentInfo(withCommentId commentId: String!, content: String!, geographicInfo: String!, location: String!, parentId: String!, toUserId: String!, voices: String!, newsId: String!, del: Any!, sel: Selector!)Parameters
commentId上级评论commentId(直接评论新闻时不传值或传“00000000-0000-0000-0000-000000000000
content评论内容
geographicInfo地理信息
location位置信息
parentId上级评论GrandpaId,若上级评论GrandpaId全为0时,则传上级评论CommentId(直接评论新闻时不传值或传
00000000-0000-0000-0000-000000000000
)toUserId回复人userId(回复谁,传谁的UserId,直接评论新闻时传自己的)
voices语音信息
newsId新闻ID
del代理
sel回调方法
-
-v4newsSendCommentInfoWithCommentId:content:geographicInfo:location:parentId:toUserId:appid:sendName:userId:newsId:del:sel:第四期(消息推送)发送评论方法
Declaration
Objective-C
- (void)v4newsSendCommentInfoWithCommentId:(NSString *)commentId content:(NSString *)content geographicInfo:(NSString *)geographicInfo location:(NSString *)location parentId:(NSString *)parentId toUserId:(NSString *)toUserId appid:(NSString *)appid sendName:(NSString *)sendName userId:(NSString *)userId newsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func v4newsSendCommentInfo(withCommentId commentId: String!, content: String!, geographicInfo: String!, location: String!, parentId: String!, toUserId: String!, appid: String!, sendName: String!, userId: String!, newsId: String!, del: Any!, sel: Selector!)Parameters
commentId上级评论commentId(直接评论新闻时不传值或传“00000000-0000-0000-0000-000000000000
content评论内容
geographicInfo地理信息
location位置信息
parentId上级评论GrandpaId,若上级评论GrandpaId全为0时,则传上级评论CommentId(直接评论新闻时不传值或传
00000000-0000-0000-0000-000000000000
)toUserId回复人userId(回复谁,传谁的UserId,直接评论新闻时传自己的)
appid应用id
sendName发送人昵称
userId发送评论时,用户的id
newsId新闻ID
del代理
sel回调方法
-
3.0根据newsId获取新闻类型
Declaration
Objective-C
- (void)v3newsStatusWithNewsId:(NSString *)newsId del:(id)del sel:(SEL)sel;Swift
func v3newsStatus(withNewsId newsId: String!, del: Any!, sel: Selector!)Parameters
newsId新闻id
del代理
sel回调方法
-
3.0获取图集下的评论
Declaration
Objective-C
- (void)v3newsCommentWithWithNewsId:(NSString *)newsId commentCount:(int)commentCount replyCount:(int)replyCount newOrOld:(NewOrOld)eVal del:(id)del sel:(SEL)sel;Swift
func v3newsCommentWith(withNewsId newsId: String!, commentCount: Int32, replyCount: Int32, newOrOld eVal: NewOrOld, del: Any!, sel: Selector!)Parameters
newsId新闻id
commentCount服务器预留字段没用
replyCount每次请求的条数
eVal首次进入传1,下拉刷新传0,上拉加载更多传1
del代理
sel回调方法
-
获取应用subId信息
Declaration
Objective-C
- (NSString *)subId;Swift
func subId() -> String! -
获取应用GroupUser信息
Declaration
Objective-C
- (void)appGroupUserQueryWithDel:(id)del sel:(SEL)sel;Swift
func appGroupUserQuery(withDel del: Any!, sel: Selector!)Parameters
del代理
sel回调方法
-
获取应用组织信息
Declaration
Objective-C
- (void)appOrgForeignInfoById:(id)del sel:(SEL)sel ownerId:(NSString *)ownerId;Swift
func appOrgForeignInfo(byId del: Any!, sel: Selector!, ownerId: String!)Parameters
del代理
sel回调方法
ownerId拥有者ID
-
判断用户是不是组织内用户
Declaration
Objective-C
- (void)checkOrgUser:(id)del sel:(SEL)sel orgid:(NSString *)orgid userid:(NSString *)userid;Swift
func checkOrgUser(_ del: Any!, sel: Selector!, orgid: String!, userid: String!)Parameters
del代理
sel回调方法
orgid组织id
userid登陆用户id
-
获取一级栏目信息
Declaration
Objective-C
- (void)newsQueryFirstPartsWithDel:(id)del sel:(SEL)sel appGroupUserId:(NSArray *)groupUserId accountType:(NSString *)accountType;Swift
func newsQueryFirstParts(withDel del: Any!, sel: Selector!, appGroupUserId groupUserId: [Any]!, accountType: String!)Parameters
del代理
sel回调方法
groupUserId组ID信息
accountType账户类型 0:匿名 1:注册用户 2:应用主
-
分享到广场
Declaration
Objective-C
- (void)shareToJHSquare:(NSDictionary *)paramDic;Swift
func share(toJHSquare paramDic: [AnyHashable : Any]!)Parameters
paramDic参数字典
-
获取应用背景图片
Declaration
Objective-C
- (void)getAppBackgroundImageWithDel:(id)del sel:(SEL)sel;Swift
func getAppBackgroundImage(withDel del: Any!, sel: Selector!)Parameters
del代理
sel回调方法
-
获取企业轮播新闻
Declaration
Objective-C
- (void)queryHomeSlidingIconsWithDel:(id)del sel:(SEL)sel;Swift
func queryHomeSlidingIcons(withDel del: Any!, sel: Selector!)Parameters
del回调类型
sel回调函数
appId应用id
-
Undocumented
Declaration
Objective-C
- (void)getMyCommonsendFormRequestWithDictionary:(NSString *)dic url:(NSString *)strUrl delegate:(id)delegate selector:(SEL)selector;Swift
func getMyCommonsendFormRequest(withDictionary dic: String!, url strUrl: String!, delegate: Any!, selector: Selector!) -
5期获取二级栏目及首个二级栏目下新闻数据
Declaration
Objective-C
- (void)v5newsQueryFirstPageWithParentId:(NSString *)parentId type:(int)type del:(id)del sel:(SEL)sel lastMeters:(NSString *)lastMeters lon:(NSString *)lon lat:(NSString *)lat;Swift
func v5newsQueryFirstPage(withParentId parentId: String!, type: Int32, del: Any!, sel: Selector!, lastMeters: String!, lon: String!, lat: String!)Parameters
parentId一级栏目ID
type栏目类型 0列表 2图集 3卡片
deldelegate
sel回调函数
lastMeters搜索范围(商街有用)
lon用户当前经度 (商街有用)
lat用户当前纬度 (商街有用)
-
-v5newsQueryPartsWithPartId:parentId:count:dateTime:lastMeters:lon:lat:newOrOld:modifyTime:orderType:type:del:sel:5期获取列表式栏目的新闻
Declaration
Objective-C
- (void)v5newsQueryPartsWithPartId:(NSString *)partId parentId:(NSString *)parentId count:(NSUInteger)cnt dateTime:(NSString *)datetime lastMeters:(NSString *)lastMeters lon:(NSString *)lon lat:(NSString *)lat newOrOld:(NewOrOld)eVal modifyTime:(NSString *)modifyTime orderType:(int)orderType type:(int)type del:(id)del sel:(SEL)sel;Swift
func v5newsQueryParts(withPartId partId: String!, parentId: String!, count cnt: UInt, dateTime datetime: String!, lastMeters: String!, lon: String!, lat: String!, newOrOld eVal: NewOrOld, modifyTime: String!, orderType: Int32, type: Int32, del: Any!, sel: Selector!)Parameters
partId二级栏目id
parentId一级栏目id
cnt获取的条数
datetime时间
eVal新数据or旧数据
modifyTime修改时间
deldelegate
sel回调函数
lastMeters搜索范围(商街有用)
lon用户当前经度 (商街有用)
lat用户当前纬度 (商街有用)
-
-v5newsQueryPartsWithPartId:parentId:storeId:count:dateTime:lastMeters:lon:lat:newOrOld:modifyTime:orderType:type:del:sel:智能培训
Declaration
Objective-C
- (void)v5newsQueryPartsWithPartId:(NSString *)partId parentId:(NSString *)parentId storeId:(NSString *)storeId count:(NSUInteger)cnt dateTime:(NSString *)datetime lastMeters:(NSString *)lastMeters lon:(NSString *)lon lat:(NSString *)lat newOrOld:(NewOrOld)eVal modifyTime:(NSString *)modifyTime orderType:(int)orderType type:(int)type del:(id)del sel:(SEL)sel;Swift
func v5newsQueryParts(withPartId partId: String!, parentId: String!, storeId: String!, count cnt: UInt, dateTime datetime: String!, lastMeters: String!, lon: String!, lat: String!, newOrOld eVal: NewOrOld, modifyTime: String!, orderType: Int32, type: Int32, del: Any!, sel: Selector!) -
获取新闻标签和用户信息
Declaration
Objective-C
- (void)v5GetUserInfoAndTagsWithNewIDS:(NSArray *)newIDSArr del:(id)del sel:(SEL)sel;Swift
func v5GetUserInfoAndTags(withNewIDS newIDSArr: [Any]!, del: Any!, sel: Selector!)Parameters
newIDSArr新闻id组成的数组
deldelegate
sel回调函数
-
登录完调用音频登录
Declaration
Objective-C
- (void)getUserInfomation;Swift
func getUserInfomation() -
上传文件
Declaration
Objective-C
- (void)UploadFileWithFileName:(NSString *)fileName size:(unsigned long long)length data:(NSData *)dt del:(id)del sel:(SEL)sel;Swift
func uploadFile(withFileName fileName: String!, size length: UInt64, data dt: Data!, del: Any!, sel: Selector!)Parameters
fileName文件名称
length文件长度
dt数据buffer
del委托
sel回调处理方法
-
Undocumented
Declaration
Objective-C
-(void)UploadFileWithFileName:(NSString *)fileName size:(unsigned long long)length startLocation:(long)location data:(NSData *)dt filePath:(NSString *)filePath folderName:(NSString *)folderName isVideo:(BOOL)isVideo del:(id)del sel:(SEL)sel cell:(id)cellDel;Swift
func uploadFile(withFileName fileName: String!, size length: UInt64, startLocation location: Int, data dt: Data!, filePath: String!, folderName: String!, isVideo: Bool, del: Any!, sel: Selector!, cell cellDel: Any!) -
Undocumented
Declaration
Objective-C
- (void)updateStoryWithMediaItem:(id)media del:(id)del sel:(SEL)sel cellDel:(id)cellDel;Swift
func updateStory(withMediaItem media: Any!, del: Any!, sel: Selector!, cellDel: Any!) -
图文发布 *
AppId
:应用id
,字符串UserId
:用户Id
, 字符串UserName
:用户昵称
, 字符串IsAnonymousUser
: 是否匿名用户(0否1是), 布尔ClientType
: 客户端类型(2安卓3苹果), 整形Name
:标题
, 字符串Html
:内容
, 字符串CoverUrl
:封面url
, 字符串MediaType
: 媒体类型(0音频1视频), 整形Seconds
: 媒体时长(秒), 整形MediaUrl
:媒体url
, 字符串MediaFileName
:媒体文件名称
, 字符串MediaFileSize
: 媒体文件大小(字节数), 整形NewsPartParentId
:一级栏目Id
, 字符串( firstPartId )NewsPartId
:二级栏目Id
, 字符串( partId )NewsPartType
: 栏目类型, 整形( orderstatus )Tags
: [a
,b
,c
],//标签Identity
: 0应用主、1投稿人、2组织内用户, 整形( identity )OrgId
:组织Id
, 字符串ParamUrl
:参数url,用于后续参数扩展
字符串( paramUrl )PicList
: [{ImgUrl
:图片地址
,ImgDesc
:图片的描述
,Cover
:图片封面1是封面 0不是封面
}] inforDic:扩充参数信息Declaration
Objective-C
- (void)createStoryVersionWithMeia:(BOOL)isMedia PicList:(NSArray *)PicList Tags:(NSArray *)Tags media:(id)media inforDic:(NSDictionary *)dic del:(id)del sel:(SEL)sel;Swift
func createStoryVersion(withMeia isMedia: Bool, picList PicList: [Any]!, tags Tags: [Any]!, media: Any!, inforDic dic: [AnyHashable : Any]!, del: Any!, sel: Selector!) -
从ipFile.plist文件中读取网络环境
Declaration
Objective-C
+ (NSString *)netEnvironment;Swift
class func netEnvironment() -> String!Return Value
开发-dev,测试-test,预上线-pre,正式-
-
Undocumented
Declaration
Objective-C
+ (NSString *)RequestProtocol;Swift
class func requestProtocol() -> String! -
Undocumented
Declaration
Objective-C
+(NSString *)newsDomain;Swift
class func newsDomain() -> String! -
Undocumented
Declaration
Objective-C
+(NSString *)mvpDomain;Swift
class func mvpDomain() -> String! -
Undocumented
Declaration
Objective-C
+(NSString *)getDomainWithKey:(NSString *)key;Swift
class func getDomainWithKey(_ key: String!) -> String!
-
根据新闻id删除新闻
Declaration
Objective-C
- (void)delNewsByNewsIDS:(NSArray *)newsIDSArr del:(id)del sel:(SEL)sel;Swift
func delNews(byNewsIDS newsIDSArr: [Any]!, del: Any!, sel: Selector!)Parameters
newsIDSArr新闻id组成的数组
deldelegate
sel回调函数
-
判断新闻标题是不是链接
Declaration
Objective-C
- (void)newsTitleIsLink:(NSString *)newsID del:(id)del sel:(SEL)sel;Swift
func newsTitleIsLink(_ newsID: String!, del: Any!, sel: Selector!)Parameters
newsID新闻ID
deldelegate
sel回调函数
-
判断用户是不是客服人员
Declaration
Objective-C
- (void)queryUserIsCustomerServiceWithUserID:(NSString *)userID del:(id)del sel:(SEL)sel;Swift
func queryUserIsCustomerService(withUserID userID: String!, del: Any!, sel: Selector!)Parameters
userID用户ID
deldelegate
sel回调函数
-
判断是否有发布模版
Declaration
Objective-C
- (void)queryHasTemplateFirstPartId:(NSString *)firstPartId partId:(NSString *)partId del:(id)del sel:(SEL)sel;Swift
func queryHasTemplateFirstPartId(_ firstPartId: String!, partId: String!, del: Any!, sel: Selector!)Parameters
firstPartId一级栏目ID
partId二级栏目ID
deldelegate
sel回调函数
-
获取推荐列表新闻
Declaration
Objective-C
- (void)queryRecommendNews:(NSNumber *)dataType dataCount:(NSNumber *)dataCount opType:(NSNumber *)opType lastDataId:(NSString *)lastDataId del:(id)del sel:(SEL)sel;Swift
func queryRecommendNews(_ dataType: NSNumber!, dataCount: NSNumber!, opType: NSNumber!, lastDataId: String!, del: Any!, sel: Selector!)Parameters
dataType新闻类型0左图1右图2图集3卡片4链接5论坛6多媒体7商界
dataCount每次获取的新闻条数
opType0刷新1增量刷新2加载更多
lastDataId上一条数据id--增量刷新(页面第一条数据)或更多(页面最后一条数据)
deldelegate
sel回调函数
-
Undocumented
Declaration
Objective-C
-(void)queryRecommendNews:(NSNumber *)dataType dataCount:(NSNumber *)dataCount opType:(NSNumber *)opType orderType:(NSNumber *)orderType lastDataId:(NSString *)lastDataId del:(id)del sel:(SEL)sel;Swift
func queryRecommendNews(_ dataType: NSNumber!, dataCount: NSNumber!, opType: NSNumber!, orderType: NSNumber!, lastDataId: String!, del: Any!, sel: Selector!)
-
混排推荐栏目使用
Declaration
Objective-C
- (void)getHomeRecommendPartNews:(NSString *)appid dataCount:(NSNumber *)dataCount opType:(NSNumber *)opType lastDataId:(NSString *)lastDataId del:(id)del sel:(SEL)sel;Swift
func getHomeRecommendPartNews(_ appid: String!, dataCount: NSNumber!, opType: NSNumber!, lastDataId: String!, del: Any!, sel: Selector!)Parameters
appid应用id
dataCount每次获取的新闻条数
opType0刷新1增量刷新2加载更多
lastDataId上一条数据id--增量刷新(页面第一条数据)或更多(页面最后一条数据)
deldelegate
sel回调函数
-
-getHomeOtherPartNews:partId:parentId:count:dateTime:lastMeters:lon:lat:newOrOld:modifyTime:orderType:type:del:sel:混排其它栏目使用
Declaration
Objective-C
- (void)getHomeOtherPartNews:(NSString *)appid partId:(NSString *)partId parentId:(NSString *)parentId count:(NSUInteger)cnt dateTime:(NSString *)datetime lastMeters:(NSString *)lastMeters lon:(NSString *)lon lat:(NSString *)lat newOrOld:(NewOrOld)eVal modifyTime:(NSString *)modifyTime orderType:(int)orderType type:(int)type del:(id)del sel:(SEL)sel;Swift
func getHomeOtherPartNews(_ appid: String!, partId: String!, parentId: String!, count cnt: UInt, dateTime datetime: String!, lastMeters: String!, lon: String!, lat: String!, newOrOld eVal: NewOrOld, modifyTime: String!, orderType: Int32, type: Int32, del: Any!, sel: Selector!)Parameters
appid应用id
partId二级栏目id
parentId一级栏目id
cnt获取的条数
datetime时间
eVal新数据or旧数据
modifyTime修改时间
deldelegate
sel回调函数
lastMeters搜索范围(商街有用)
lon用户当前经度 (商街有用)
lat用户当前纬度 (商街有用)
-
获取推荐应用的APPID
Declaration
Objective-C
- (void)getPromoStroeData:(id)del sel:(SEL)sel;Swift
func getPromoStroeData(_ del: Any!, sel: Selector!)Parameters
deldelegate
sel回调函数
-
Undocumented
Declaration
Objective-C
- (NSURL *)changProtocolURLWithString:(NSString *)URLString;Swift
func changProtocolURL(with URLString: String!) -> URL! -
根据应用id,获取应用信息
Declaration
Objective-C
- (void)getAppInfoByIds:(NSArray *)appIDS del:(id)del sel:(SEL)sel;Swift
func getAppInfo(byIds appIDS: [Any]!, del: Any!, sel: Selector!)Parameters
appIDS新闻id组成的数组
deldelegate
sel回调函数
-
Undocumented
Declaration
Objective-C
- (void)deleteAppFavoriteBatch:(NSArray *)newsIDS del:(id)del sel:(SEL)sel;Swift
func deleteAppFavoriteBatch(_ newsIDS: [Any]!, del: Any!, sel: Selector!)
-
Undocumented
Declaration
Objective-C
-(void)queryNewsPics:(NSString *)newsIDS del:(id)del sel:(SEL)sel;Swift
func queryNewsPics(_ newsIDS: String!, del: Any!, sel: Selector!)
-
Undocumented
Declaration
Objective-C
-(NSURL *)getHeadFullFileURL:(NSString *)fileUrl;Swift
func getHeadFullFileURL(_ fileUrl: String!) -> URL! -
Undocumented
Declaration
Objective-C
-(NSURL *)getPlayVideoFullFileURL:(NSString *)fileUrl;Swift
func getPlayVideoFullFileURL(_ fileUrl: String!) -> URL! -
Undocumented
Declaration
Objective-C
+ (NSString *)getHttpHost:(NSString *)strHost;Swift
class func getHttpHost(_ strHost: String!) -> String! -
Undocumented
Declaration
Objective-C
+ (void)queryViewCountNew:(NSString *)newsID;Swift
class func queryViewCountNew(_ newsID: String!)
-
Undocumented
Declaration
Objective-C
- (void)queryNewsForSearchComponent:(NSString *)urlStr del:(id)del sel:(SEL)sel;Swift
func queryNews(forSearchComponent urlStr: String!, del: Any!, sel: Selector!)
-
Undocumented
Declaration
Objective-C
- (void)getNewsAttachments:(NSString *)newsID del:(id)del sel:(SEL)sel;Swift
func getNewsAttachments(_ newsID: String!, del: Any!, sel: Selector!)
View on GitHub
NetEngine Class Reference