# Interface IGetLocalMsgByIdOption

获取本地消息的配置

beforeCount afterCount 总共分为四种情况

    1. beforeCount > 0 && afterCount > 0，将获取 beforeCount + {messageId} + afterCount 的消息
    2. beforeCount > 0 && afterCount == 0，将获取 beforeCount + {messageId} 的消息
    3. beforeCount == 0 && afterCount > 0，将获取 {messageId} + afterCount 的消息
    4. beforeCount == 0 && afterCount == 0，将获取 {messageId}

#### Version

1.0.0

interface IGetLocalMsgByIdOption {
objNameList?: List<string>;
messageId: number;
beforeCount: number;
afterCount: number;
}

- Defined in message/option/MessageOption.ts:30

##### Index

### Properties

objNameList?
messageId
beforeCount
afterCount

## Properties

### `Optional` objNameList

objNameList?: List<string>

objectName 集合，为空的话代表获取所有类型的本地消息

有效值的话代表获取指定类型的消息

- Defined in message/option/MessageOption.ts:36

### messageId

messageId: number

消息本地数据库 ID

- Defined in message/option/MessageOption.ts:41

### beforeCount

beforeCount: number

在 messageId 之前的消息个数，取值 >=0

#### Discussion

beforeCount 如果传入 10 ，但是获取的个数不足时说明往前没有更多的消息了

- Defined in message/option/MessageOption.ts:47

### afterCount

afterCount: number

在 messageId 之后的消息个数，取值 >=0

#### Discussion

afterCount 如果传入 10 ，但是获取的个数不足时说明往后没有更多的消息了

- Defined in message/option/MessageOption.ts:53