Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
a0726ba8
Commit
a0726ba8
authored
Dec 17, 2019
by
konghaorui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
补充动态接口
parent
0e15c16c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
0 deletions
+91
-0
DynamicServiceImp.kt
m-dynamic/src/main/java/com/yidianling/dynamic/modular/service/DynamicServiceImp.kt
+61
-0
DynamicRouterImp.kt
m-dynamic/src/main/java/com/yidianling/dynamic/router/DynamicRouterImp.kt
+1
-0
IDynamicService.kt
m-dynamic/src/main/modular_api/com/yidianling/dynamic/api/IDynamicService.kt
+29
-0
No files found.
m-dynamic/src/main/java/com/yidianling/dynamic/modular/service/DynamicServiceImp.kt
0 → 100644
View file @
a0726ba8
package
com.yidianling.dynamic.modular.service
import
android.app.Activity
import
android.content.Context
import
android.content.Intent
import
com.alibaba.android.arouter.facade.annotation.Route
import
com.yidianling.dynamic.activity.TrendsReplyInfoActivity
import
com.yidianling.dynamic.api.IDynamicService
import
com.yidianling.dynamic.members.MembersActivity
import
com.yidianling.dynamic.publishTrend.PublishTrendActivity
import
com.yidianling.dynamic.topic.topicDetail.TopicDetailActivity
import
com.yidianling.dynamic.trendsDetail.TrendsDetailActivity
/**
* Created by haorui on 2019-12-17 .
* Des:
*/
@Route
(
path
=
"/dynamic/DynamicService"
)
class
DynamicServiceImp
:
IDynamicService
{
override
fun
init
(
context
:
Context
?)
{
}
override
fun
membersIntent
(
activity
:
Activity
,
userId
:
String
):
Intent
{
return
MembersActivity
.
newIntent
(
activity
,
userId
)
}
override
fun
replyInfoIntent
(
activity
:
Activity
,
replyId
:
String
,
aid
:
String
):
Intent
{
return
TrendsReplyInfoActivity
.
newIntent
(
activity
,
replyId
,
aid
)
}
override
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
):
Intent
{
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
)
}
override
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
):
Intent
{
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
,
isScrollToZan
)
}
override
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
,
lastId
:
Int
):
Intent
{
return
TrendsDetailActivity
.
newIntent
(
activity
,
trendId
,
isScrollToZan
,
lastId
)
}
override
fun
publishTrendIntent
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
{
return
PublishTrendActivity
.
newIntent
(
activity
,
url
,
cover
,
title
)
}
override
fun
publishFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
{
return
PublishTrendActivity
.
newIntentForFm
(
activity
,
url
,
cover
,
title
,
1
)
}
override
fun
publishArticleToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
{
return
PublishTrendActivity
.
newIntentForArticle
(
activity
,
url
,
cover
,
title
)
}
override
fun
topicDetailIntent
(
context
:
Context
,
isSplash
:
Boolean
,
topicId
:
String
):
Intent
{
return
TopicDetailActivity
.
newIntent
(
context
,
isSplash
,
topicId
)
}
}
\ No newline at end of file
m-dynamic/src/main/java/com/yidianling/dynamic/router/DynamicRouterImp.kt
View file @
a0726ba8
...
...
@@ -8,6 +8,7 @@ import com.yidianling.dynamic.members.MembersActivity
import
com.yidianling.dynamic.publishTrend.PublishTrendActivity
import
com.yidianling.dynamic.topic.topicDetail.TopicDetailActivity
import
com.yidianling.dynamic.trendsDetail.TrendsDetailActivity
import
com.yidianling.dynamic.api.IDynamicService
import
com.yidianling.router.dynamic.IDynamicRouter
class
DynamicRouterImp
:
IDynamicRouter
{
...
...
m-dynamic/src/main/modular_api/com/yidianling/dynamic/api/IDynamicService.kt
0 → 100644
View file @
a0726ba8
package
com.yidianling.dynamic.api
import
android.app.Activity
import
android.content.Context
import
android.content.Intent
import
com.alibaba.android.arouter.facade.template.IProvider
interface
IDynamicService
:
IProvider
{
fun
membersIntent
(
activity
:
Activity
,
userId
:
String
):
Intent
fun
replyInfoIntent
(
activity
:
Activity
,
replyId
:
String
,
aid
:
String
):
Intent
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
):
Intent
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
):
Intent
fun
trendsDetailIntent
(
activity
:
Activity
,
trendId
:
Int
,
isScrollToZan
:
Boolean
,
lastId
:
Int
):
Intent
fun
publishTrendIntent
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
publishFmToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
fun
topicDetailIntent
(
context
:
Context
,
isSplash
:
Boolean
,
topicId
:
String
):
Intent
fun
publishArticleToTrend
(
activity
:
Activity
,
url
:
String
,
cover
:
String
,
title
:
String
):
Intent
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment