目录

DayNightMsg

Class Info

public class DayNightMsg

白天黑夜返回结果类。

Public Method Summary

Qualifier and Type

Method Name and Description

String

getMsg()

获取计算信息。

boolean

isDayTime()

获取是否是白天。

boolean

isResult()

获取接口计算结果。

Public Methods

[h2]getMsg

Method

public String getMsg()

您调用此API可以获取白天黑夜接口的计算信息。

Returns

Type

Description

String

白天黑夜接口的计算信息,即错误原因。

[h2]isDayTime

Method

public boolean isDayTime()

您调用此API可以获取是否是白天。

Returns

Type

Description

boolean

  • ture 是白天
  • false 是黑夜

[h2]isResult

Method

public boolean isResult()

您调用此API可以获取白天黑夜接口的计算结果。

Returns

Type

Description

boolean

白天黑夜接口计算结果

  • ture 获取计算结果成功
  • false 获取计算结果失败