GetNetworkInternal
(
String sSearchTerm,
WhatToInclude eWhatToInclude,
Int32 iMaximumStatuses
)
{
Debug.Assert( !String.IsNullOrEmpty(sSearchTerm) );
Debug.Assert(iMaximumStatuses > 0);
Debug.Assert(iMaximumStatuses != Int32.MaxValue);
AssertValid();
BeforeGetNetwork();
Boolean bIncludeStatistics = WhatToIncludeFlagIsSet(
eWhatToInclude, WhatToInclude.Statistics);
Boolean bIncludeStatuses = WhatToIncludeFlagIsSet(eWhatToInclude,
WhatToInclude.Statuses);
GraphMLXmlDocument oGraphMLXmlDocument =
TwitterSearchNetworkGraphMLUtil.CreateGraphMLXmlDocument(
bIncludeStatistics, bIncludeStatuses);
RequestStatistics oRequestStatistics = new RequestStatistics();
try
{
GetNetworkInternal(sSearchTerm, eWhatToInclude, iMaximumStatuses,
oRequestStatistics, oGraphMLXmlDocument);
}
catch (Exception oException)
{
OnUnexpectedException(oException, oGraphMLXmlDocument,
oRequestStatistics);
}
OnNetworkObtained(oGraphMLXmlDocument, oRequestStatistics,
GetNetworkDescription(sSearchTerm, eWhatToInclude,
iMaximumStatuses, oGraphMLXmlDocument),
"Twitter Search " + sSearchTerm
);
return (oGraphMLXmlDocument);
}